Open
Description
@inline
function foo(x: i32): i32 {
if (isConstant(x)) {
return -1;
} else {
return x;
}
}
export function test(): i32 {
return foo(10);
}
produce:
(func $main/test (export "test") (type $t0) (result i32)
i32.const 10
)
expected:
(func $main/test (export "test") (type $t0) (result i32)
i32.const -1
)
example in playground