We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f84a3 commit ef5b07bCopy full SHA for ef5b07b
test/core/tag.wast
@@ -19,3 +19,43 @@
19
(module (tag (result i32)))
20
"non-empty tag result type"
21
)
22
+
23
24
+;; Link-time typing
25
26
+(module
27
+ (rec
28
+ (type $t1 (func))
29
+ (type $t2 (func))
30
+ )
31
+ (tag (export "tag") (type $t1))
32
+)
33
34
+(register "M")
35
36
37
38
39
40
41
+ (tag (import "M" "tag") (type $t1))
42
43
44
+(assert_unlinkable
45
+ (module
46
47
48
49
50
+ (tag (import "M" "tag") (type $t2))
51
52
+ "incompatible import"
53
54
55
56
57
+ (type $t (func))
58
+ (tag (import "M" "tag") (type $t))
59
60
61
0 commit comments