Commit e5453979 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash after last change

parent 3b16dc63
......@@ -3244,10 +3244,9 @@ class CClassDefNode(ClassDefNode):
self.body.analyse_expressions(scope)
def generate_function_definitions(self, env, code):
self.generate_lambda_definitions(self.scope, code)
if self.body:
self.body.generate_function_definitions(
self.entry.type.scope, code)
self.generate_lambda_definitions(self.scope, code)
self.body.generate_function_definitions(self.scope, code)
def generate_execution_code(self, code):
# This is needed to generate evaluation code for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment