Skip to content

Commit

Permalink
Update Tagged.can_have_tag in light of #529
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata authored and ggreif committed Sep 24, 2019
1 parent 5cf475b commit 1b0de8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codegen/compile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1178,15 +1178,15 @@ module Tagged = struct
| Array ->
begin match normalize ty with
| (Con _ | Any) -> true
| (Array _ | Tup _ | Obj _) -> true
| (Prim _ | Opt _ | Variant _ | Func _ | Non) -> false
| (Array _ | Tup _) -> true
| (Prim _ | Obj _ | Opt _ | Variant _ | Func _ | Non) -> false
| (Pre | Async _ | Mut _ | Var _ | Typ _) -> assert false
end
| Text ->
begin match normalize ty with
| (Con _ | Any) -> true
| (Prim Text | Obj _) -> true
| (Prim _ | Array _ | Tup _ | Opt _ | Variant _ | Func _ | Non) -> false
| (Prim Text) -> true
| (Prim _ | Obj _ | Array _ | Tup _ | Opt _ | Variant _ | Func _ | Non) -> false
| (Pre | Async _ | Mut _ | Var _ | Typ _) -> assert false
end
| Object ->
Expand Down

0 comments on commit 1b0de8f

Please sign in to comment.