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
In the second example Instead of passing a slice type to Frog, the struct returned by Frog always contains a slice. The first example which fails to compile is valid code as only a pointer to Bear is stored, not the struct itself, so it should be allowed to compile.
The text was updated successfully, but these errors were encountered:
Vexu
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
May 24, 2020
This code fails to compile with the following error:
However, a small change which should produce identical code allows it to compile
In the second example Instead of passing a slice type to
Frog
, the struct returned byFrog
always contains a slice. The first example which fails to compile is valid code as only a pointer toBear
is stored, not the struct itself, so it should be allowed to compile.The text was updated successfully, but these errors were encountered: