mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
Fix: variable to have VarInfo
instead of Type
This commit is contained in:
parent
119a326ebb
commit
46b87e1ca3
29 changed files with 888 additions and 816 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue