mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 19:15:43 +00:00
Fix class scopes by modifying symboltable
This commit is contained in:
parent
acce23b79b
commit
d7f99dc7b1
2 changed files with 7 additions and 9 deletions
|
@ -975,7 +975,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
|
||||
// Turn code object into function object:
|
||||
self.emit(Instruction::MakeFunction {
|
||||
flags: bytecode::FunctionOpArg::IS_CLASS,
|
||||
flags: bytecode::FunctionOpArg::empty(),
|
||||
});
|
||||
|
||||
self.emit(Instruction::LoadConst {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue