Skip to content

Commit 2dea5ba

Browse files
committed
fixup! Try defining subtype(union(), union()) with type_diff()
1 parent 1f5884f commit 2dea5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typechecker.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ compat_ty({type, _, 'fun', [{type, _, product, Args1}, Res1]},
364364
compat_ty({type, _, union, _} = U1, {type, _, union, _} = U2, Seen, Env) ->
365365
case type_diff(U1, U2, Env) of
366366
?type(none) -> ret(Seen);
367-
false -> throw(nomatch)
367+
_ -> throw(nomatch)
368368
end;
369369
compat_ty(Ty1, {type, _, union, Tys2}, Seen, Env) ->
370370
any_type(Ty1, Tys2, Seen, Env);

0 commit comments

Comments
 (0)