Skip to content

Questionable 'arity mismatch' - re-submitted. #227

@ghost

Description

Re-submitting #223 as I believe it was incorrectly closed.

This example fails with a 'arity mismatch' in the ml-proto. It is accepted by sexp-wasm.

(module
 (func $f1 (result i32)
   (block $l0
     (br_if (i32.const 1) $l0
       (block $l1
         (br $l1 (i32.const 1))))
     (i32.const 1))))

@rossberg-chromium wrote 'This is an inverse-duplicate of #179. Please reopen that if you disagree with the resolution.'

The above case appears to be significantly different to that in #179. The expected type for block $l1 is the expected type of block $l0 which is i32. The expected type and the actual type do appear to match here? Sorry if I have missed something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions