From: Rob Findley Date: Wed, 21 Apr 2021 03:25:12 +0000 (-0400) Subject: go/types: re-enable a commented out test X-Git-Tag: go1.17beta1~509 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=617a83ec68;p=gostls13.git 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 Run-TryBot: Robert Findley TryBot-Result: Go Bot Reviewed-by: Robert Griesemer --- 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]{} }