diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /test/undef.go | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'test/undef.go')
-rw-r--r-- | test/undef.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/undef.go b/test/undef.go index 70785675a..7ef07882a 100644 --- a/test/undef.go +++ b/test/undef.go @@ -9,9 +9,9 @@ package main var ( - _ = x // ERROR "undefined: x" - _ = x // ERROR "undefined: x" - _ = x // ERROR "undefined: x" + _ = x // ERROR "undefined.*x" + _ = x // ERROR "undefined.*x" + _ = x // ERROR "undefined.*x" ) type T struct { @@ -19,7 +19,7 @@ type T struct { } func foo() *T { return &T{y: 99} } -func bar() int { return y } // ERROR "undefined: y" +func bar() int { return y } // ERROR "undefined.*y" type T1 struct { y1 int @@ -39,6 +39,6 @@ func f1(val interface{}) { func f2(val interface{}) { switch val.(type) { default: - println(v) // ERROR "undefined: v" + println(v) // ERROR "undefined.*v" } } |