Commit 1830d1e7 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 878d8413
......@@ -147,6 +147,25 @@ def loop():
pass
assert typeof(a) == "long"
cdef unicode retu():
return u"12345"
cdef bytes retb():
return b"12345"
def conditional(x):
"""
>>> conditional(True)
(True, 'Python object')
>>> conditional(False)
(False, 'Python object')
"""
if x:
a = retu()
else:
a = retb()
return type(a) is unicode, typeof(a)
@infer_types('safe')
def safe_only():
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment