]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug323.go.
authorIan Lance Taylor <iant@golang.org>
Mon, 28 Mar 2011 03:38:28 +0000 (20:38 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 28 Mar 2011 03:38:28 +0000 (20:38 -0700)
bug323.go:18:3: error: reference to undefined field or method ‘Meth’
bug323.go:19:3: error: reference to undefined field or method ‘Meth2’

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4280072

test/fixedbugs/bug323.go

index bfb528318aad6a8727b88279c98947ad28ef8de6..23e2be6603aaa14e7b0107d18a90d24825aefe68 100644 (file)
@@ -15,6 +15,6 @@ func (t T) Meth2() {}
 func main() {
        t := &T{}
        p := P(t)
-       p.Meth()  // ERROR "undefined \(type P"
-       p.Meth2() // ERROR "undefined \(type P"
-}
\ No newline at end of file
+       p.Meth()  // ERROR "undefined"
+       p.Meth2() // ERROR "undefined"
+}