Add type validations for function imports (#8478)
Validates that the exported function is a subtype of the import
declaration. Part of #8261.
Example error:
```wast
(module $A
(func $f (export "f") (param i32) (result i32)
(local.get 0)
)
)
(register "A" $A)
(module $B
(func (import "A" "f") (result i32))
)
;; [trap Imported function A.f with type (func (param i32) (result i32)) isn't compatible with import declaration with type (modulo rec groups): (func (result i32))]
``` S
Steven Fontanella committed
0f06b26ec7ec03b9505765fe752f8bc20cf45a0b
Parent: bb290e7
Committed by GitHub <noreply@github.com>
on 3/18/2026, 6:28:43 PM