Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online REPL crashes compiling simple function #6705

Open
andyferris opened this issue May 2, 2024 · 0 comments
Open

Online REPL crashes compiling simple function #6705

andyferris opened this issue May 2, 2024 · 0 comments

Comments

@andyferris
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant