lambda2wasm icon indicating copy to clipboard operation
lambda2wasm copied to clipboard

function type mismatch error when non-polymorphic function is given to parameter which is typed as polymorphic function

Open ENvironmentSet opened this issue 3 years ago • 0 comments

how to reproduce the error

apply = f:(a -> b). x: a. f x.
inc = x:I32. x + 1#I32.
main = apply inc 2#I32.

this may fail to run, and wasm runtime will emit following error message

RuntimeError: null function or function signature mismatch

ENvironmentSet avatar Aug 29 '22 01:08 ENvironmentSet