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
package main
type X *[10]Y
type Y X
func main() {
}
//--------------------------------------------------------------
Compiler says:
test.go:3: invalid recursive type Y
Compiler version: cd89452cfea3 weekly/weekly.2011-04-04
I think these recursive types are perfectly valid, because X's size doesn't depend on
Y's size.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: