[Name lookup] Support lookup of 'self' in lazy property initializers. #4676

Merged
merged 1 commit into from Sep 8, 2016

Projects

None yet

2 participants

@DougGregor
Member

Lazy property initializers can refer to 'self' either directly or
implicitly (via references to instance members). Model this in
ASTScope-based unqualified name lookup.

Note that the modeling of self with the current name lookup
mechanism is broken, so when ASTScope-based unqualified name lookup is
enabled, it fixes SR-2203, rdar://problem/16954496, and the many dupes
of the latter.

@DougGregor DougGregor [Name lookup] Support lookup of 'self' in lazy property initializers.
Lazy property initializers can refer to 'self' either directly or
implicitly (via references to instance members). Model this in
ASTScope-based unqualified name lookup.

Note that the modeling of 'self' with the current name lookup
mechanism is broken, so when ASTScope-based unqualified name lookup is
enabled, it fixes SR-2203, rdar://problem/16954496, and the many dupes
of the latter.
67bf68a
@DougGregor
Member

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 3525584 into apple:master Sep 8, 2016

2 of 3 checks passed

Test and Merge (smoke test) Build started.
Details
Swift Test Linux Platform (smoke test)
Details
Swift Test OS X Platform (smoke test)
Details
@DougGregor DougGregor deleted the DougGregor:astscope-lazy-initializers branch Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment