summaryrefslogtreecommitdiff
path: root/test/typecheck/bad-function-result-type-mismatch.txt
blob: c37d93d305d01d579175a8d55cdbd5f16261dcc1 (plain)
1
2
3
4
5
6
7
8
9
10
;;; TOOL: wat2wasm
;;; ERROR: 1
(module
  (func (result i32)
    f32.const 0))
(;; STDERR ;;;
out/test/typecheck/bad-function-result-type-mismatch.txt:5:5: error: type mismatch in implicit return, expected [i32] but got [f32]
    f32.const 0))
    ^^^^^^^^^
;;; STDERR ;;)