summaryrefslogtreecommitdiff
path: root/test/blank1.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2020-11-30 21:38:49 -0800
committerRobert Griesemer <gri@golang.org>2020-12-01 21:49:31 +0000
commit72ad2f44eaf8bb71ea100fd4acf7dd04384c7175 (patch)
tree40bb3522f5dcd398280bea526b44921f7b9e572d /test/blank1.go
parent87bc85a846d5dc2d8fe7dbda900d6066ab98f1a5 (diff)
downloadgo-git-72ad2f44eaf8bb71ea100fd4acf7dd04384c7175.tar.gz
[dev.typeparams] test: add scaffolding to run.go to check compiler with -G flag
Added a new flag -G to run. Setting -G (as in: go run run.go -G) will run tests marked with "errorcheck" (and no other flags) also with the compiler using the new typechecker. Many tests don't pass yet (due to discrepancies in error messages). The top-level tests in the test directory which don't pass yet have been explicitly excluded, permitting to see the current status. Future CLs will bring error messages in sync and eventually all tests should pass. Change-Id: I7caf5eff413e173f68d092af4bbe458434718d74 Reviewed-on: https://go-review.googlesource.com/c/go/+/274313 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test/blank1.go')
-rw-r--r--test/blank1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/blank1.go b/test/blank1.go
index c9a8e6a290..3c981cd5eb 100644
--- a/test/blank1.go
+++ b/test/blank1.go
@@ -25,8 +25,8 @@ func main() {
_() // ERROR "cannot use .* as value"
x := _+1 // ERROR "cannot use .* as value"
_ = x
- _ = t._ // ERROR "cannot refer to blank field|invalid use of"
+ _ = t._ // ERROR "cannot refer to blank field|invalid use of|t._ undefined"
var v1, v2 T
- _ = v1 == v2 // ERROR "cannot be compared|non-comparable"
+ _ = v1 == v2 // ERROR "cannot be compared|non-comparable|cannot compare v1 == v2"
}