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
x.go:7: cannot use &statictmp_1 (type *[1]int) as type *A in assignment
x.go:8: cannot use &statictmp_4 (type *[1]int) as type *A in assignment
Observe that func good is more or less equivalent to func bad, but it compiles. The reported types in the error message are also wrong: x is an A, not a *A.
Reproduces in 1.4, 1.5, and 1.6, so setting milestone to 1.8.
The text was updated successfully, but these errors were encountered:
Compiling this code generates:
Observe that func good is more or less equivalent to func bad, but it compiles. The reported types in the error message are also wrong: x is an A, not a *A.
Reproduces in 1.4, 1.5, and 1.6, so setting milestone to 1.8.
The text was updated successfully, but these errors were encountered: