diff --git a/test/fixedbugs/bug299.go b/test/fixedbugs/bug299.go index 1793a0de69..4d73144322 100644 --- a/test/fixedbugs/bug299.go +++ b/test/fixedbugs/bug299.go @@ -22,6 +22,6 @@ type T struct { func (p T) m() {} // not legal according to spec -func (p (T)) f() {} // ERROR "parenthesize" -func (p *(T)) g() {} // ERROR "parenthesize" -func (p (*T)) h() {} // ERROR "parenthesize" +func (p (T)) f() {} // ERROR "parenthesize|expected" +func (p *(T)) g() {} // ERROR "parenthesize|expected" +func (p (*T)) h() {} // ERROR "parenthesize|expected"