fix: indexing of type specs

This commit is contained in:
Shunsuke Shibayama 2023-03-11 16:31:20 +09:00
parent 239e07c84a
commit 2d04d4d424
4 changed files with 53 additions and 16 deletions

View file

@ -155,7 +155,7 @@ impl ASTLowerer {
}
pub(crate) fn inc_ref<L: Locational>(&self, vi: &VarInfo, name: &L) {
self.module.context.inc_ref(vi, name);
self.module.context.inc_ref(vi, name, &self.module.context);
}
pub(crate) fn warn_unused_vars(&mut self, mode: &str) {