예제 #1
0
파일: bug229.go 프로젝트: duhaibo0404/go-1
func main() {
	var t testing.T

	// make sure error mentions that
	// name is unexported, not just "name not found".

	t.common.name = nil // ERROR "unexported"

	println(testing.anyLowercaseName("asdf")) // ERROR "unexported" "undefined: testing.anyLowercaseName"
}
예제 #2
0
파일: bug229.go 프로젝트: go-nosql/golang
func main() {
	var t testing.T

	// make sure error mentions that
	// ch is unexported, not just "ch not found".

	t.ch = nil // ERROR "unexported"

	println(testing.anyLowercaseName("asdf")) // ERROR "unexported"
}