2018-06-24 | Paul Boddie | file changeset files shortlog | Made use of available reference information in order to determine the nature of invocations and to avoid generic __invoke calls. |
paul@2 | 1 | from B import C, g |
paul@2 | 2 | |
paul@2 | 3 | class D(C): |
paul@2 | 4 | d = 3 |
paul@270 | 5 | def m(self): |
paul@270 | 6 | return self.d |
paul@2 | 7 | |
paul@2 | 8 | def f(x): |
paul@270 | 9 | return x.m() |
paul@2 | 10 | |
paul@2 | 11 | def h(x): |
paul@2 | 12 | return g(x) |