#
#   Test cocall to bound method
#

class C:

	def __init__(self, a):
		self.a = a

	codef m(self):
		yield self.a

codef f():
	c = C(42)
	c.m()

g = f.__cocall__()
print(next(g))
