mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
fix: assert
de-optimization bug
This commit is contained in:
parent
cfc2214bfb
commit
20a94b806a
4 changed files with 8 additions and 5 deletions
|
@ -775,7 +775,7 @@ impl PyCodeGenerator {
|
|||
let kind = RegisterNameKind::from_ident(&ident);
|
||||
let escaped = escape_ident(ident);
|
||||
match &escaped[..] {
|
||||
"if__" | "for__" | "while__" | "with__" | "discard__" => {
|
||||
"if__" | "for__" | "while__" | "with__" | "discard__" | "assert__" => {
|
||||
self.load_control();
|
||||
}
|
||||
"int__" | "nat__" | "str__" | "float__" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue