diff options
author | Russ Cox <rsc@golang.org> | 2009-08-03 11:58:52 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-03 11:58:52 -0700 |
commit | 9dc22b6d6fbd62ce127dbad1bdbfbb073ad7c4af (patch) | |
tree | 0802e78710de882ee76b248ff780b4385b36c1a5 /test/const1.go | |
parent | 178089056ea9dae2c2807f0b5b475c2caf09fde3 (diff) | |
download | go-9dc22b6d6fbd62ce127dbad1bdbfbb073ad7c4af.tar.gz go-9dc22b6d6fbd62ce127dbad1bdbfbb073ad7c4af.zip |
more 6g reorg; checkpoint.
typecheck.c is now responsible for all type checking
except for assignment and function argument "..."
R=ken
OCL=32661
CL=32667
Diffstat (limited to 'test/const1.go')
-rw-r--r-- | test/const1.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/const1.go b/test/const1.go index 0d48ada5e2..622b837a54 100644 --- a/test/const1.go +++ b/test/const1.go @@ -65,15 +65,15 @@ var ( func f(int); func main() { - f(Int8); // ERROR "convert|wrong type" - f(Minus1); // ERROR "convert|wrong type" - f(Uint8); // ERROR "convert|wrong type" + f(Int8); // ERROR "convert|wrong type|cannot" + f(Minus1); // ERROR "convert|wrong type|cannot" + f(Uint8); // ERROR "convert|wrong type|cannot" f(Const); // OK - f(Float32); // ERROR "convert|wrong type" - f(Float); // ERROR "convert|wrong type" + f(Float32); // ERROR "convert|wrong type|cannot" + f(Float); // ERROR "convert|wrong type|cannot" f(ConstFloat); // ERROR "truncate" f(ConstFloat - 0.5); // OK - f(Big); // ERROR "convert|wrong type" - f(String); // ERROR "convert|wrong type" - f(Bool); // ERROR "convert|wrong type" + f(Big); // ERROR "convert|wrong type|cannot" + f(String); // ERROR "convert|wrong type|cannot" + f(Bool); // ERROR "convert|wrong type|cannot" } |