191f3ed2b4eef6ecf4e8058ec24ab2a903805c42
[gcc.git] / gcc / testsuite / go.test / test / fixedbugs / bug310.go
1 // errchk $G $D/$F.go
2
3 // Copyright 2010 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 p
8
9 import (
10 "bytes"
11 "fmt"
12 )
13
14 type t int
15
16 func main() {
17 _ = t.bar // ERROR "no method"
18 var b bytes.Buffer
19 fmt.Print(b) // ERROR "implicit assignment"
20 }