Skip to content

Commit

Permalink
fix CallType on calling puts in a module method
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Jan 23, 2025
1 parent b2ed1a9 commit 7ac8616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/skc_ast2hir/src/class_dict/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ impl<'hir_maker> ClassDict<'hir_maker> {
}
SkType::Module(_) => {
// TODO: Look up in supermodule, once it's implemented
// Lookup in Object (the top type)
return self.lookup_method_(
receiver_type,
&ty::raw("Object"),
method_name,
CallType::Module,
CallType::Virtual,
locs,
);
}
Expand Down

0 comments on commit 7ac8616

Please sign in to comment.