gcc/testsuite/go.test/test/fixedbugs/issue18419.dir/test.go
raw| 1 | // errorcheck -0 -m -l |
| 2 | |
| 3 | // Copyright 2017 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 | import "./other" |
| 10 | |
| 11 | func InMyCode(e *other.Exported) { |
| 12 | e.member() // ERROR "e\.member undefined .cannot refer to unexported field or method other\.\(\*Exported\)\.member.|unexported field or method" |
| 13 | } |
| 14 | |
| 15 | func main() {} |