Commit aa194848 by Ian Lance Taylor

Test change for treating a function receiver as any other parameter list.

From-SVN: r216345
parent ada24741
...@@ -21,7 +21,9 @@ type T struct { ...@@ -21,7 +21,9 @@ type T struct {
// legal according to spec // legal according to spec
func (p T) m() {} func (p T) m() {}
// not legal according to spec // now legal according to spec
func (p (T)) f() {} // ERROR "parenthesize|expected" func (p (T)) f() {}
func (p *(T)) g() {} // ERROR "parenthesize|expected" func (p *(T)) g() {}
func (p (*T)) h() {} // ERROR "parenthesize|expected" func (p (*T)) h() {}
func (p (*(T))) i() {}
func ((T),) j() {}
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