Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added forgotten unaliasing of class names in 'except'. #1486

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading