2009-11-23 | Paul Boddie | file changeset files shortlog | Added attribute usage registration for branches where more specific attribute usage occurs, but where such usage cannot be merged back into the active usage definition for a given name. This should ensure that attributes are not forgotten because their usage was not merged and carried forward. Added more specific tests. |
paul@243 | 1 | #!/usr/bin/env python |
paul@243 | 2 | |
paul@243 | 3 | class C: |
paul@243 | 4 | x = 111 |
paul@243 | 5 | |
paul@243 | 6 | class C: |
paul@243 | 7 | def __init__(self): |
paul@243 | 8 | self.x = 222 |
paul@243 | 9 | |
paul@243 | 10 | c = C() |
paul@243 | 11 | result_222 = c.x |
paul@243 | 12 | |
paul@243 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |