blob: efcf54f3589895475600e2b57a5f058cb6abcbde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
;;; TOOL: wat2wasm
;;; ERROR: 1
(module
(func (result i32)
i32.const 1
i32.const 2
if
i32.const 3
drop
end
i32.add))
(;; STDERR ;;;
out/test/typecheck/bad-expr-if.txt:11:5: error: type mismatch in i32.add, expected [i32, i32] but got [i32]
i32.add))
^^^^^^^
;;; STDERR ;;)
|