diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-07-27 08:35:57 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-07-27 08:35:57 +0200 |
commit | 1ac7ba99fc809958ab59ed9b81df6fda7f2dbf05 (patch) | |
tree | 86681f530cae8ac27b64e516206227ab71078009 /typecheck/CC/Typecheck/Types.hs | |
parent | 342c213f3caddd64db0eac5ae146912e00378371 (diff) |
Correct type variable rigidity (I think)
Diffstat (limited to 'typecheck/CC/Typecheck/Types.hs')
-rw-r--r-- | typecheck/CC/Typecheck/Types.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/typecheck/CC/Typecheck/Types.hs b/typecheck/CC/Typecheck/Types.hs index 3f3c471..3009ca1 100644 --- a/typecheck/CC/Typecheck/Types.hs +++ b/typecheck/CC/Typecheck/Types.hs @@ -99,5 +99,4 @@ convertType' aliases extraVars sr origtype = do convert mp (S.TTup ts) = T.TTup (map (convert mp) ts) convert mp (S.TNamed n ts) = T.TNamed n (map (convert mp) ts) convert mp (S.TUnion ts) = T.TUnion (Set.map (convert mp) ts) - -- TODO: Should this be Rigid? I really don't know how this works. - convert mp (S.TyVar n) = T.TyVar T.Rigid (mp Map.! n) + convert mp (S.TyVar n) = T.TyVar T.Instantiable (mp Map.! n) |