1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:14:39 -07:00

Match gccgo error messages.

bug165.go:13:6: error: invalid recursive type 'S'

This is a different line from the 6g error message, which is
"invalid map key type".  I accomodated both compilers by
merging the line.

bug188.go:13:2: error: unexpected reference to package

I made the error message less specific, which I think is fine
here.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33398
CL=33426
This commit is contained in:
Ian Lance Taylor 2009-08-17 17:40:52 -07:00
parent 4d08d91192
commit f7e4fc9b1f
2 changed files with 2 additions and 2 deletions

View File

@ -11,5 +11,5 @@ type I interface {
} }
type S struct { type S struct {
m map[S] bool; // ERROR "map key type|complete" m map[S] bool; // ERROR "map key type"
} }

View File

@ -10,5 +10,5 @@ import "sort"
func main() { func main() {
var x int; var x int;
sort(x); // ERROR "package.*selector" sort(x); // ERROR "package"
} }