Added a missing line to substitute back inferred types for anonymous non-numeric types

This commit is contained in:
Neil Brown 2008-05-20 22:08:15 +00:00
parent 8c78d056b6
commit e5d8b51827

View File

@ -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