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 70d2af7 commit b34c4beCopy full SHA for b34c4be
interpreter/valid/valid.ml
@@ -127,7 +127,7 @@ let check_limits {min; max} range at msg =
127
128
let check_def_type (c : context) (t : def_type) at =
129
match t with
130
- | DefT (RecT sts, i) -> assert Int32.(compare i (of_int (List.length sts)) < 0)
+ | DefT (RecT sts, i) -> assert (i < Lib.List32.length sts)
131
132
let check_num_type (c : context) (t : num_type) at =
133
()
test/core/tag.wast
@@ -21,6 +21,14 @@
21
;; "non-empty tag result type"
22
;; )
23
24
+;; Mutually recursive types
25
+(module
26
+ (rec
27
+ (type $f (func (param (ref null $c))))
28
+ (type $c (cont $f))
29
+ )
30
+ (tag (type $f))
31
+)
32
33
;; Link-time typing
34
0 commit comments