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
The function \x -> x + 1 miscompiles on the wasm target. It seems to get confused between i64 and i32 (although at this point I'm not sure why it is compiled at all, until we know the concrete type of x?).
This (obviously) works fine on other roc versions, like roc repl on linux x86_64.
» \x -> x + 1
JsValue(CompileError: WebAssembly.instantiate(): Compiling function #1290 failed: call[0] expected type i64, found local.get of type i32 @+9798
CompileError: WebAssembly.instantiate(): Compiling function #1290 failed: call[0] expected type i64, found local.get of type i32 @+9798) :
Note: This is distinct to #5307 as f = \x -> x + 1 gives the same error.
The text was updated successfully, but these errors were encountered:
The function
\x -> x + 1
miscompiles on the wasm target. It seems to get confused betweeni64
andi32
(although at this point I'm not sure why it is compiled at all, until we know the concrete type ofx
?).This (obviously) works fine on other roc versions, like
roc repl
on linux x86_64.Note: This is distinct to #5307 as
f = \x -> x + 1
gives the same error.The text was updated successfully, but these errors were encountered: