You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting error C2040 from cl while compiling generated .c file.
Code to reproduce the behaviour:
cimport numpy as cnp
ctypedef fused scalar_or_array:
long
cnp.ndarray[long]
cdef class A:
cdef inline scalar_or_array meth(self, scalar_or_array x):
return x
If I replace cnp.ndarray[long] with double, I get error C2371 instead of C2040.
I can get rid of error if I make the method not inline. Or if I remove one of types in scalar_or_array definition (any one).
Expected behaviour
I hope inline methods with fused types should work. Or at least provide a clear error description on pyx->c phase.
Environment
OS: Windows 10
Python version 3.9
Cython version 3.0.0a11
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Getting error C2040 from cl while compiling generated .c file.
Code to reproduce the behaviour:
If I replace cnp.ndarray[long] with double, I get error C2371 instead of C2040.
I can get rid of error if I make the method not inline. Or if I remove one of types in scalar_or_array definition (any one).
Expected behaviour
I hope inline methods with fused types should work. Or at least provide a clear error description on pyx->c phase.
Environment
OS: Windows 10
Python version 3.9
Cython version 3.0.0a11
Additional context
No response
The text was updated successfully, but these errors were encountered: