]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/named1.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / named1.go
index febad64ece60cd4f22f5b63fbadf9a893928a19f..452c6da27e259c543fc9833578a0a1bc63bff7b8 100644 (file)
@@ -1,6 +1,6 @@
 // errorcheck
 
-// Copyright 2009 The Go Authors.  All rights reserved.
+// Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
@@ -54,7 +54,7 @@ func main() {
        _ = b
 
        _, bb := <-c
-       asBool(bb) // ERROR "cannot use.*type bool.*as type Bool"
+       asBool(bb) // ERROR "cannot use.*type bool.*as type Bool|cannot use bb"
        _, b = <-c // ok now
        _ = b