-
Notifications
You must be signed in to change notification settings - Fork 478
Closed
Description
(module
(type (func (param i32) (result i32)))
(func (type 0) (param i32) (result i32)
i32.const 2
i32.const 3
i32.const 0
i32.const 1
local.get 0
select
select
)
)
is a different, but equivalent, way to write
Lines 47 to 49 in 937fc7d
(func (export "as-select-last") (param i32) (result i32) | |
(select (i32.const 2) (i32.const 3) (select (i32.const 0) (i32.const 1) (local.get 0))) | |
) |
but it fails to parse with the following error when fed to the reference interpreter
11.3-11.4: syntax error: unexpected token
If we parenthesize the last select, the parse succeeds. This appears to be the only such function in the spec-test suite where such an equivalent rewrite fails to parse in the test suite, as far as I can tell.
Metadata
Metadata
Assignees
Labels
No labels