diff options
Diffstat (limited to 'tests/compile/complex_annotations.pyx')
-rw-r--r-- | tests/compile/complex_annotations.pyx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/compile/complex_annotations.pyx b/tests/compile/complex_annotations.pyx new file mode 100644 index 000000000..5d95611ac --- /dev/null +++ b/tests/compile/complex_annotations.pyx @@ -0,0 +1,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 |