Lichen

Annotated tests/targets.py

696:57685f7eee75
2017-03-10 Paul Boddie Added a test of name aliases referencing methods used as invocation targets.
paul@696 1
class C:
paul@696 2
    def f(x):
paul@696 3
        return x
paul@696 4
paul@696 5
    def g(a, b, c):
paul@696 6
        return a
paul@696 7
paul@696 8
    def h(x):
paul@696 9
        return x
paul@696 10
paul@696 11
c = C()
paul@696 12
f = c.f
paul@696 13
g = c.g
paul@696 14
h = c.h
paul@696 15
paul@696 16
print g(h(12345), g(f(23456), h(34567), f(45678)), f(56789))