Commit 2eb17d78 authored by Ian Lance Taylor's avatar Ian Lance Taylor

Recognize gccgo error message:

interface1.go:29:6: error: incompatible type in initialization (missing method Next)

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=18183
CL=18271
parent 42ae5270
...@@ -30,6 +30,6 @@ func AddInst(Inst) *Inst { ...@@ -30,6 +30,6 @@ func AddInst(Inst) *Inst {
func main() { func main() {
re := new(Regexp); re := new(Regexp);
print("call addinst\n"); print("call addinst\n");
var x Inst = AddInst(new(Start)); // ERROR "illegal" var x Inst = AddInst(new(Start)); // ERROR "illegal|incompatible"
print("return from addinst\n"); print("return from addinst\n");
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment