2016-09-08 | Paul Boddie | file changeset files shortlog | Fixed built-in name identification in functions, also removing the missing name recording in modules since unidentified names are considered as built-in names until all deferred references are identified. |
paul@2 | 1 | class C: |
paul@2 | 2 | x = 3 |
paul@2 | 3 | |
paul@2 | 4 | def f(): |
paul@2 | 5 | x = g.x |
paul@2 | 6 | y = g |
paul@2 | 7 | return y.x |
paul@2 | 8 | |
paul@2 | 9 | g = C |
paul@2 | 10 | result = f() |
paul@2 | 11 | assert result == 3 |