e_ass.pyx 304 Bytes
Newer Older
Robert Bradshaw's avatar
Robert Bradshaw committed
1 2
# mode: error

3
cdef void foo(obj):
4 5 6 7 8
    cdef int i1
    cdef char *p1
    cdef int *p2
    i1 = p1 # error
    p2 = obj # error
9

10 11 12
    obj = p2 # error


13
_ERRORS = u"""
14 15 16
7:9: Cannot assign type 'char *' to 'int'
8:9: Cannot convert Python object to 'int *'
10:10: Cannot convert 'int *' to Python object
17
"""