Commit e2c10033 authored by Stefan Behnel's avatar Stefan Behnel

additional test case for Python 3 function annotation syntax

parent 7ee28046
......@@ -231,3 +231,12 @@ def int_literals():
print(cython.typeof(10000000000000L))
print(cython.typeof(1UL))
print(cython.typeof(10000000000000UL))
def annotation_syntax(a : "test", b : "other" = 2) -> "ret":
"""
>>> annotation_syntax(1)
3
>>> annotation_syntax(1,3)
4
"""
return a+b
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