diff --git a/tests/run/cython3.pyx b/tests/run/cython3.pyx index 918621b43b7a697cdd7f8b345700461fcb1c8e36..c473fc9d0a3579c700aac3cab708724a992de360 100644 --- a/tests/run/cython3.pyx +++ b/tests/run/cython3.pyx @@ -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