mirror of
https://github.com/golang/go
synced 2024-11-26 17:56:55 -07:00
go/types: re-enable a commented out test
This test was unnecessarily commented out in CL 312190: re-enable it and update its assertions. Change-Id: Ic08563e25c9b05a8e35d67690f5d27a761133266 Reviewed-on: https://go-review.googlesource.com/c/go/+/312097 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
f0a8101d34
commit
617a83ec68
@ -40,8 +40,7 @@ type foo9[A any] interface { type foo9 /* ERROR interface contains type constrai
|
|||||||
func _() { var _ = new(foo9 /* ERROR interface contains type constraints */ [int]) }
|
func _() { var _ = new(foo9 /* ERROR interface contains type constraints */ [int]) }
|
||||||
|
|
||||||
// crash 12
|
// crash 12
|
||||||
// TODO(rFindley) temporarily disabled due to an error check issue
|
var u /* ERROR cycle */ , i [func /* ERROR used as value */ /* ERROR used as value */ (u, c /* ERROR undeclared */ /* ERROR undeclared */ ) {}(0, len /* ERROR must be called */ /* ERROR must be called */ )]c /* ERROR undeclared */ /* ERROR undeclared */
|
||||||
// var u /* ERROR cycle */ , i [func /* ERROR used as value */ /* ERROR used as value */ (u, c /* ERROR undeclared */ /* ERROR undeclared */ ) {}(0, len)]c /* ERROR undeclared */ /* ERROR undeclared */
|
|
||||||
|
|
||||||
// crash 15
|
// crash 15
|
||||||
func y15() { var a /* ERROR declared but not used */ interface{ p() } = G15[string]{} }
|
func y15() { var a /* ERROR declared but not used */ interface{ p() } = G15[string]{} }
|
||||||
|
Loading…
Reference in New Issue
Block a user