diff options
author | Russ Cox <rsc@golang.org> | 2008-10-16 15:59:31 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-10-16 15:59:31 -0700 |
commit | 1163b1db6fb7cae94daf3b939df3dee26f48ee21 (patch) | |
tree | e0a34202934220fbb1b8af43881269f95e53121e /test/convlit1.go | |
parent | bc641d1e9c5ddccc460d84939264165009b805a1 (diff) | |
download | go-1163b1db6fb7cae94daf3b939df3dee26f48ee21.tar.gz go-1163b1db6fb7cae94daf3b939df3dee26f48ee21.zip |
diagnose various conversion problems
R=ken
OCL=17320
CL=17320
Diffstat (limited to 'test/convlit1.go')
-rw-r--r-- | test/convlit1.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/convlit1.go b/test/convlit1.go new file mode 100644 index 0000000000..c15bfcb4bc --- /dev/null +++ b/test/convlit1.go @@ -0,0 +1,15 @@ +// errchk $G $D/$F.go + +// 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. + +package main + +var a = []int { "a" }; // ERROR "conver" +var b = int { 1 }; // ERROR "compos" + + +func main() { + if sys.argc < 1 { } // ERROR "conver" +} |