Skip to content

Commit

Permalink
added forgotten unaliasing of class names in 'except'.
Browse files Browse the repository at this point in the history
  • Loading branch information
nordlander committed Sep 12, 2023
1 parent 6283891 commit 1d541aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/Acton/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,9 @@ instance InfEnv Handler where
instance InfEnv Except where
infEnv env (ExceptAll l) = return ([], [], ExceptAll l)
infEnv env (Except l x) = return ([Cast t tException], [], Except l x)
where t = tCon (TC x [])
where t = tCon (TC (unalias env x) [])
infEnv env (ExceptAs l x n) = return ([Cast t tException], [(n, NVar t)], ExceptAs l x n)
where t = tCon (TC x [])
where t = tCon (TC (unalias env x) [])

instance Infer Expr where
infer env x@(Var l n) = case findQName n env of
Expand Down

0 comments on commit 1d541aa

Please sign in to comment.