mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
Update codegen.rs
This commit is contained in:
parent
93f1dc0ed3
commit
a128719cbd
1 changed files with 6 additions and 0 deletions
|
@ -781,6 +781,12 @@ impl PyCodeGenerator {
|
|||
| "invert" | "is_" | "is_not" | "call" => {
|
||||
self.load_operators();
|
||||
}
|
||||
"CodeType" => {
|
||||
self.emit_global_import_items(
|
||||
Identifier::public("types"),
|
||||
vec![(Identifier::public("CodeType"), None)],
|
||||
);
|
||||
}
|
||||
// NoneType is not defined in the global scope, use `type(None)` instead
|
||||
"NoneType" => {
|
||||
self.emit_push_null();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue