You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. 6g test.go
for test.go:
package main
type (
T0 struct{}
T1 (T0) // error message disappears if the parens are removed
)
func (p *T0) m() {}
What is the expected output? What do you see instead?
Expected output: compilation w/o errors. T0 is parenthesized but for a completely
unrelated declaration.
Output:
6g test5.go
test.go:8: cannot parenthesize receiver type
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: