| // Copyright 2010 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. |
| // Test line numbers in error messages. |
| _ = x // ERROR "undefined.*x" |
| _ = x // ERROR "undefined.*x" |
| _ = x // ERROR "undefined.*x" |
| func foo() *T { return &T{y: 99} } |
| func bar() int { return y } // ERROR "undefined.*y" |
| func foo1() *T1 { return &T1{y1: 99} } |
| func bar1() int { return y1 } |
| func f1(val interface{}) { |
| func f2(val interface{}) { |
| println(v) // ERROR "undefined.*v" |