Closed
Description
x.go:
package p
type T = interface {
m() interface{ T }
}
gotype x.go produces
$ gotype x.go
x.go:4:17: invalid AST: T is not a named type
x.go:4:17: invalid AST: T is not a named type
For reference:
cmd.compile:
x.go:3:6: invalid recursive type alias T
x.go:3:6: T uses <T>
x.go:3:10: <T> uses <T>
x.go:4:3: <T> uses <T>
x.go:4:6: <T> uses T
gccgo accepts this code w/o error.