Skip to content

Commit

Permalink
Fix the islinear_type function to handle applications of type functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaller committed Feb 3, 2022
1 parent 19e064b commit d00cc9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/flx_core/flx_btype.ml
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ let rec islinear_type t =
| BTYP_compactarray _
-> true

| BTYP_inst (_,_,_,k)
| BTYP_type_apply (BTYP_finst (_,_,_,k),_)
| BTYP_type_apply (BTYP_inst (_,_,_,KIND_function (_,k)),_)
| BTYP_typeop (_,_,k)
| BTYP_inst (_,_,_,k)
| BTYP_type_var (_,k) -> kind_ge2 KIND_compactlinear k

| _ -> false
Expand Down

0 comments on commit d00cc9d

Please sign in to comment.