summaryrefslogtreecommitdiff
path: root/tests/errors/e_excvalfunctype.pyx
blob: a1d9783223c0dca24980eef2c6f45ca5f1792af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# mode: error

ctypedef int (*spamfunc)(int, char *) except 42
ctypedef int (*grailfunc)(int, char *)

cdef grailfunc grail
cdef spamfunc spam

grail = spam # type mismatch
spam = grail # type mismatch


_ERRORS = u"""
9:8: Cannot assign type 'spamfunc' to 'grailfunc'
10:7: Cannot assign type 'grailfunc' to 'spamfunc'
"""