summaryrefslogtreecommitdiff
path: root/tests/compile/complex_annotations.pyx
blob: 5d95611acda2342bd6b62d00cde6fb648450b8be (plain)
1
2
3
4
5
6
7
# mode: compile

# Complex numbers defined in annotations weren't having their utility code imported directly
# leading to compile-errors that the type wasn't defined. The test is intentionally minimal since
# anything more thorough ends up creating the utility code
cdef f(x: complex):
    pass