Source file test/fixedbugs/bug460.dir/b.go

     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|undefined"
    13  	x.int8 = 20   // ERROR "unexported field|undefined"
    14  	x.error = nil // ERROR "unexported field|undefined"
    15  	x.rune = 'a'  // ERROR "unexported field|undefined"
    16  	x.byte = 20   // ERROR "unexported field|undefined"
    17  }
    18  

View as plain text