mirror of
https://github.com/golang/go
synced 2024-11-17 17:04:47 -07:00
go/types: update test case to exercise mutually recursive interfaces
Due to a typo, this test case was not actually exercising the bug described in golang/go#33656. Update it to do so. Interestingly, the comparison is now valid (as it should be) -- I suspect #33656 is actually fixed. Fixes #33656 Change-Id: If50a917f6477d8eb4f82f5a2a96bf5d9123ff0d4 Reviewed-on: https://go-review.googlesource.com/c/go/+/241263 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
3a7f8ccf24
commit
494ec85d9f
5
src/go/types/testdata/cycles2.src
vendored
5
src/go/types/testdata/cycles2.src
vendored
@ -37,7 +37,7 @@ type A interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type B interface {
|
type B interface {
|
||||||
a() interface {
|
b() interface {
|
||||||
AB
|
AB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,8 +59,7 @@ var y interface {
|
|||||||
B
|
B
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(gri) This should be a valid compare. See #33656.
|
var _ = x == y
|
||||||
var _ = x /* ERROR cannot compare */ == y
|
|
||||||
|
|
||||||
|
|
||||||
// Test case for issue 6638.
|
// Test case for issue 6638.
|
||||||
|
Loading…
Reference in New Issue
Block a user