;;; TOOL: wat2wasm ;;; ARGS: --enable-function-references ;;; ERROR: 1 (module (func (export "main") (result i32) (call_ref $t (i32.const 10) (ref.null func) ) ) (type $t (func)) ) (;; STDERR ;;; out/test/typecheck/bad-callref-null.txt:6:6: error: type mismatch in call_ref, expected [(ref null 0)] but got [... funcref] (call_ref $t (i32.const 10) ^^^^^^^^ ;;; STDERR ;;)