From f7e4fc9b1fde08034741505c006f2fcf46e9d725 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Aug 2009 17:40:52 -0700 Subject: [PATCH] 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 --- test/fixedbugs/bug165.go | 2 +- test/fixedbugs/bug188.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixedbugs/bug165.go b/test/fixedbugs/bug165.go index a4fe715c2c..8ce67a46db 100644 --- a/test/fixedbugs/bug165.go +++ b/test/fixedbugs/bug165.go @@ -11,5 +11,5 @@ type I interface { } type S struct { - m map[S] bool; // ERROR "map key type|complete" + m map[S] bool; // ERROR "map key type" } diff --git a/test/fixedbugs/bug188.go b/test/fixedbugs/bug188.go index cbd421bb79..3851cb672c 100644 --- a/test/fixedbugs/bug188.go +++ b/test/fixedbugs/bug188.go @@ -10,5 +10,5 @@ import "sort" func main() { var x int; - sort(x); // ERROR "package.*selector" + sort(x); // ERROR "package" } -- 2.50.0