Debian Codegraph @

gcc/testsuite/go.test/test/fixedbugs/bug460.dir/b.go

raw
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package b
6
7 import "./a"
8
9 var x a.Foo
10
11 func main() {
12 x.int = 20 // ERROR "unexported field"
13 x.int8 = 20 // ERROR "unexported field"
14 x.error = nil // ERROR "unexported field"
15 x.rune = 'a' // ERROR "unexported field"
16 x.byte = 20 // ERROR "unexported field"
17 }