2008-10-16 16:59:31 -06:00
|
|
|
// 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
|
|
|
|
|
2008-10-20 18:10:03 -06:00
|
|
|
var a = []int { "a" }; // ERROR "conver|incompatible"
|
2008-10-16 16:59:31 -06:00
|
|
|
var b = int { 1 }; // ERROR "compos"
|
|
|
|
|
|
|
|
|
2009-01-16 17:12:14 -07:00
|
|
|
func f() int
|
|
|
|
|
2008-10-16 16:59:31 -06:00
|
|
|
func main() {
|
2009-01-16 17:12:14 -07:00
|
|
|
if f < 1 { } // ERROR "conver|incompatible"
|
2008-10-16 16:59:31 -06:00
|
|
|
}
|