Skip to content

Commit

Permalink
fix type substitution issue
Browse files Browse the repository at this point in the history
  • Loading branch information
willtim committed Aug 24, 2018
1 parent 72fc87d commit ea82773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expresso/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ instance Types Type where
alg (TMetaVarF v :*: K p) =
case IM.lookup (metaUnique v) (unSubst s) of
Nothing -> Fix (TMetaVarF v :*: K p)
Just t -> t -- TODO
Just t -> apply s t -- TODO could this ever fail to terminate?
alg e = Fix e

instance Types TypeEnv where
Expand Down

0 comments on commit ea82773

Please sign in to comment.