summaryrefslogtreecommitdiff
path: root/test/const1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-03 11:58:52 -0700
committerRuss Cox <rsc@golang.org>2009-08-03 11:58:52 -0700
commit7d972b8ae744caddba5c8ef163b95b612b8f643d (patch)
tree0802e78710de882ee76b248ff780b4385b36c1a5 /test/const1.go
parent4c103008001b549fbc78824f40f4636a4fa53b33 (diff)
downloadgo-7d972b8ae744caddba5c8ef163b95b612b8f643d.tar.gz
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.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/const1.go b/test/const1.go
index 0d48ada5e..622b837a5 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"
}