]> Cypherpunks.ru repositories - gostls13.git/blob - test/convlit1.go
more 6g reorg; checkpoint.
[gostls13.git] / test / convlit1.go
1 // errchk $G $D/$F.go
2
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package main
8
9 var a = []int { "a" };  // ERROR "conver|incompatible|cannot"
10 var b = int { 1 };      // ERROR "compos"
11
12
13 func f() int
14
15 func main() {
16         if f < 1 { }    // ERROR "conver|incompatible|invalid"
17 }