2017-02-07 | Paul Boddie | file changeset files shortlog | Enhanced attribute access modifiers to communicate details of invocations, moving detection of unsuitable invocations (due to argument/parameter number mismatches) to the deducer. The result nodes needed changing to accommodate invocation-related information so that the previously-introduced warnings can still be generated. |
paul@320 | 1 | class C: |
paul@320 | 2 | pass |
paul@320 | 3 | |
paul@320 | 4 | def c(): |
paul@320 | 5 | return 456 |
paul@320 | 6 | |
paul@320 | 7 | def f(): |
paul@320 | 8 | return C() |
paul@320 | 9 | |
paul@320 | 10 | print f() # 123 |
paul@320 | 11 | |
paul@320 | 12 | C = c |
paul@320 | 13 | |
paul@320 | 14 | print f() # 456 |