Fix: variable to have VarInfo instead of Type

This commit is contained in:
Shunsuke Shibayama 2022-10-18 00:25:47 +09:00
parent 119a326ebb
commit 46b87e1ca3
29 changed files with 888 additions and 816 deletions

View file

@ -226,7 +226,7 @@ impl SideEffectChecker {
if i == last_idx
&& self.block_stack.last().unwrap() == &Instant
&& !def.sig.is_procedural()
&& chunk.t().is_procedural()
&& chunk.t().is_procedure()
{
self.errs.push(EffectError::proc_assign_error(
self.cfg.input.clone(),
@ -324,7 +324,7 @@ impl SideEffectChecker {
},
// 引数がproceduralでも関数呼び出しなら副作用なし
Expr::Call(call) => {
if (call.obj.t().is_procedural()
if (call.obj.t().is_procedure()
|| call
.attr_name
.as_ref()