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