projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ebcaf
)
extend test
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 6 Dec 2013 17:58:01 +0000
(18:58 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 6 Dec 2013 17:58:01 +0000
(18:58 +0100)
tests/run/listcomp.pyx
patch
|
blob
|
history
diff --git
a/tests/run/listcomp.pyx
b/tests/run/listcomp.pyx
index
2955177
..
dd555ca
100644
(file)
--- a/
tests/run/listcomp.pyx
+++ b/
tests/run/listcomp.pyx
@@
-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()