summaryrefslogtreecommitdiff
path: root/tests/errors/e_excvalfunctype.pyx
blob: 25cae47c614b1c50b60fa0882e646b9de5fe60dc (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 *) noexcept

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'
"""