nac3core: fix assign to constant
This commit is contained in:
parent
ec52128a4a
commit
be75fa7368
@ -46,6 +46,9 @@ impl<'a> Inferencer<'a> {
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
ExprKind::Constant { .. } => {
|
||||
Err(format!("cannot assign to a constant (at {})", pattern.location))
|
||||
}
|
||||
_ => self.check_expr(pattern, defined_identifiers),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user