Fix using pointer type in templates.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 10 Mar 2011 09:20:10 +0000 (01:20 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 10 Mar 2011 09:20:10 +0000 (01:20 -0800)
Cython/Compiler/Parsing.py

index 2cd437e771a4a624b2275392e6aefa3c2c87701d..91ddf6a7f9ae25881bb97947779054e8f70b5747 100644 (file)
@@ -2003,7 +2003,7 @@ def looking_at_expr(s):
             is_type = True
         elif s.sy == '*' or s.sy == '**':
             s.next()
-            is_type = s.sy == ')'
+            is_type = s.sy in (')', ']')
             s.put_back(*saved)
         elif s.sy == '(':
             s.next()