Merge closure tests and fixes.
[cython.git] / tests / compile / extcoerce.pyx
1 cdef class Grail:
2
3     def __add__(int x, float y):
4         pass
5
6 cdef class Swallow:
7     pass
8     
9 def f(Grail g):
10     cdef int i = 0
11     cdef Swallow s
12     cdef object x
13     g = x
14     x = g
15     g = i
16     i = g
17     g = s
18     s = g
19