aboutsummaryrefslogtreecommitdiff
path: root/src/go
diff options
context:
space:
mode:
authorRob Findley <rfindley@google.com>2021-04-20 23:25:12 -0400
committerRobert Findley <rfindley@google.com>2021-04-22 03:03:48 +0000
commit617a83ec68b7657b0185a6b190f04460de30f31e (patch)
tree3a01a050302671c903113130b0dae5da2029e36f /src/go
parentf0a8101d34b396c4dc9ea6581c03ce16419192ab (diff)
downloadgo-617a83ec68b7657b0185a6b190f04460de30f31e.tar.gz
go-617a83ec68b7657b0185a6b190f04460de30f31e.zip
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>
Diffstat (limited to 'src/go')
-rw-r--r--src/go/types/fixedbugs/issue39634.go23
1 files changed, 1 insertions, 2 deletions
diff --git a/src/go/types/fixedbugs/issue39634.go2 b/src/go/types/fixedbugs/issue39634.go2
index af1f1e44c5..a13ed13ce5 100644
--- a/src/go/types/fixedbugs/issue39634.go2
+++ b/src/go/types/fixedbugs/issue39634.go2
@@ -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]) }
// 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)]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 /* ERROR must be called */ /* ERROR must be called */ )]c /* ERROR undeclared */ /* ERROR undeclared */
// crash 15
func y15() { var a /* ERROR declared but not used */ interface{ p() } = G15[string]{} }