Skip to content

type error in unreachable code on block-sigs branch  #338

@sunfishcode

Description

@sunfishcode

The block-sigs branch has this testcase in loop.wast:

(assert_invalid
  (module (func $type-cont-last-void-vs-empty (result i32)
    (loop (br 0 (nop)))
  ))
  "type mismatch"
)

The end of the function is unreachable, so implementations shouldn't be required to issue a type error here, by my understanding of the rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions