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

Fixed bad codegen of classename arg to isinstance(). #1055

Merged
merged 1 commit into from
Nov 5, 2022
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
2 changes: 1 addition & 1 deletion compiler/Acton/CodeGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ instance Gen Expr where
gen env (Call _ e p _) = genCall env [] e p
gen env (Async _ e) = gen env e
gen env (TApp _ e ts) = genInst env ts e
gen env (IsInstance _ e c) = gen env primISINSTANCE <> parens (gen env e <> comma <+> gen env c)
gen env (IsInstance _ e c) = gen env primISINSTANCE <> parens (gen env e <> comma <+> gen env (eQVar c))
gen env (Dot _ e n) = genDot env [] e n
gen env (DotI _ e i) = gen env e <> text "->" <> gen env componentsKW <> brackets (pretty i)
gen env (RestI _ e i) = gen env eNone <> semi <+> text "// CodeGen for tuple tail not implemented"
Expand Down