diff options
-rw-r--r-- | test/named1.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/named1.go b/test/named1.go index 406e73b19..21019533c 100644 --- a/test/named1.go +++ b/test/named1.go @@ -32,22 +32,22 @@ func main() { asBool(1!=2); // ERROR "cannot use.*type bool.*as type Bool" asBool(i < j); // ERROR "cannot use.*type bool.*as type Bool" - _, b = m[2]; // ERROR "cannot assign bool.*type Bool" + _, b = m[2]; // ERROR "cannot .* bool.*type Bool" m[2] = 1, b; // ERROR "cannot use.*type Bool.*as type bool" b = c<-1; // ERROR "cannot use.*type bool.*type Bool" _ = b; asBool(c<-1); // ERROR "cannot use.*type bool.*as type Bool" - _, b = <-c; // ERROR "cannot assign bool.*type Bool" + _, b = <-c; // ERROR "cannot .* bool.*type Bool" _ = b; var inter interface{}; - _, b = inter.(Map); // ERROR "cannot assign bool.*type Bool" + _, b = inter.(Map); // ERROR "cannot .* bool.*type Bool" _ = b; var minter interface{M()}; - _, b = minter.(Map); // ERROR "cannot assign bool.*type Bool" + _, b = minter.(Map); // ERROR "cannot .* bool.*type Bool" _ = b; asBool(closed(c)); // ERROR "cannot use.*type bool.*as type Bool" |