Skip to content

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

Merged
swift-ci merged 1 commit intoswiftlang:masterfrom
DougGregor:astscope-lazy-initializers
Sep 8, 2016
Merged

[Name lookup] Support lookup of 'self' in lazy property initializers.#4676
swift-ci merged 1 commit intoswiftlang:masterfrom
DougGregor:astscope-lazy-initializers

Conversation

@DougGregor
Copy link
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.

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
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 3525584 into swiftlang:master Sep 8, 2016
@DougGregor DougGregor deleted the astscope-lazy-initializers branch September 8, 2016 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants