1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/chain.py Thu Sep 22 22:08:37 2016 +0200
1.3 @@ -0,0 +1,23 @@
1.4 +class C:
1.5 + class D:
1.6 + class E:
1.7 + def m(self, x):
1.8 + return x
1.9 +
1.10 +def main():
1.11 + c = C
1.12 + d = C.D
1.13 + e = C.D.E
1.14 + f = C.D.E.m
1.15 + inst = e()
1.16 + method = inst.m
1.17 + return method(5)
1.18 +
1.19 +result1 = main()
1.20 +c = C
1.21 +d = C.D
1.22 +e = C.D.E
1.23 +f = C.D.E.m
1.24 +inst = e()
1.25 +method = inst.m
1.26 +result2 = method(5)