merged in Vitek's generators branch
[cython.git] / tests / errors / e_tempcast.pyx
1 # mode: error
2
3 cdef object blarg
4
5 def foo(obj):
6         cdef void *p
7         p = <void *>blarg # ok
8         p = <void *>(obj + blarg) # error - temporary
9
10 _ERRORS = u"""
11 6:5: Casting temporary Python object to non-numeric non-Python type
12 """