extend test
authorStefan Behnel <stefan_ml@behnel.de>
Fri, 6 Dec 2013 17:58:01 +0000 (18:58 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Fri, 6 Dec 2013 17:58:01 +0000 (18:58 +0100)
tests/run/listcomp.pyx

index 2955177..dd555ca 100644 (file)
@@ -39,6 +39,13 @@ def typed():
     cdef A obj
     print [obj for obj in [A(), A(), A()]]
 
+def inferred_type():
+    """
+    >>> inferred_type()
+    ['A', 'A', 'A']
+    """
+    print [cython.typeof(obj) for obj in [A(), A(), A()]]
+
 def iterdict():
     """
     >>> iterdict()