fix compiler crash after last change
authorStefan Behnel <scoder@users.berlios.de>
Fri, 3 Dec 2010 14:37:47 +0000 (15:37 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 3 Dec 2010 14:37:47 +0000 (15:37 +0100)
Cython/Compiler/Nodes.py

index 8a7cc5ca4fc5dadcbf2f4efe1d2a960c2728a13c..09a9ffdfeba3299ddda31cb7e165b97f479682ea 100644 (file)
@@ -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