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 8e19f3c commit 580bf91Copy full SHA for 580bf91
compiler/lib-wasm/typing.ml
@@ -134,6 +134,8 @@ module Domain = struct
134
else
135
Array.init (max l l') ~f:(fun i ->
136
if i < l then if i < l' then join t.(i) t'.(i) else t.(i) else t'.(i)))
137
+ | Int _, Tuple _ -> t'
138
+ | Tuple _, Int _ -> t
139
| Bigarray b, Bigarray b' when Bigarray.equal b b' -> t
140
| Top, _ | _, Top -> Top
141
| (Int _ | Number _ | Tuple _ | Bigarray _), _ -> Top
@@ -164,6 +166,7 @@ module Domain = struct
164
166
i = l || (sub t.(i) t'.(i) && compare t t' (i + 1) l)
165
167
in
168
compare t t' 0 (Array.length t)
169
+ | Int _, Tuple _ -> true
170
| Bigarray b, Bigarray b' -> Bigarray.equal b b'
171
| (Int _ | Number _ | Tuple _ | Bigarray _), _ -> false
172
0 commit comments