From acce23b79b1c9f93c2d1ba1089a5f8bff1a9ecba Mon Sep 17 00:00:00 2001 From: coolreader18 <33094578+coolreader18@users.noreply.github.com> Date: Thu, 5 Sep 2019 00:27:16 -0500 Subject: [PATCH] Fix class vs method scopes --- src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.rs b/src/compile.rs index 7194c88..2324ac3 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -975,7 +975,7 @@ impl Compiler { // Turn code object into function object: self.emit(Instruction::MakeFunction { - flags: bytecode::FunctionOpArg::empty(), + flags: bytecode::FunctionOpArg::IS_CLASS, }); self.emit(Instruction::LoadConst {