Added a missing line to substitute back inferred types for anonymous non-numeric types
This commit is contained in:
parent
8c78d056b6
commit
e5d8b51827
|
@ -127,6 +127,7 @@ substituteUnknownTypes mt = applyDepthM sub
|
|||
where
|
||||
sub :: A.Type -> PassM A.Type
|
||||
sub (A.UnknownVarType (Left n)) = lookup $ UnifyIndex (A.nameMeta n, Right n)
|
||||
sub (A.UnknownVarType (Right (m,i))) = lookup $ UnifyIndex (m,Left i)
|
||||
sub (A.UnknownNumLitType m i _) = lookup $ UnifyIndex (m, Left i)
|
||||
sub t = return t
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user