fix: assert de-optimization bug

This commit is contained in:
Shunsuke Shibayama 2024-01-21 13:10:47 +09:00
parent cfc2214bfb
commit 20a94b806a
4 changed files with 8 additions and 5 deletions

View file

@ -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__" => {