From 7cd4277abc171f38a579a0cf4cf4ca97fa016520 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Mon, 26 Jan 2009 18:12:56 +0100 Subject: [PATCH] Fix #117 --- Cython/Compiler/Nodes.py | 2 ++ tests/errors/buffertypedef_T117.pyx | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 tests/errors/buffertypedef_T117.pyx diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ebd314b4..8b5c95b5 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -732,6 +732,8 @@ class CBufferAccessTypeNode(CBaseTypeNode): "keyword_args", "dtype_node"] dtype_node = None + + name = None def analyse(self, env, could_be_name = False): base_type = self.base_type_node.analyse(env) diff --git a/tests/errors/buffertypedef_T117.pyx b/tests/errors/buffertypedef_T117.pyx new file mode 100644 index 00000000..21878a4f --- /dev/null +++ b/tests/errors/buffertypedef_T117.pyx @@ -0,0 +1,5 @@ +ctypedef object[float] mybuffer + +_ERRORS = u""" +1:23: Syntax error in ctypedef statement +""" -- 2.26.2