[Sema/SILGen] Allow property wrappers on let declarations#62342
Open
amritpan wants to merge 10 commits intoswiftlang:mainfrom
Open
[Sema/SILGen] Allow property wrappers on let declarations#62342amritpan wants to merge 10 commits intoswiftlang:mainfrom
let declarations#62342amritpan wants to merge 10 commits intoswiftlang:mainfrom
Conversation
Contributor
|
@swift-ci please build toolchain |
let declarations
6cb7fe8 to
6139ffa
Compare
29359b4 to
8dca445
Compare
xedin
reviewed
Dec 20, 2022
bd2ab13 to
a71ce80
Compare
Contributor
|
I will try to take a look tomorrow, thank you for following up on this! |
a71ce80 to
8420fa9
Compare
ktoso
reviewed
Feb 2, 2023
test/Concurrency/task_local.swift
Outdated
Contributor
There was a problem hiding this comment.
Thanks for including the test 👍
8420fa9 to
ca1cf88
Compare
ca1cf88 to
5cc2d74
Compare
a0712d9 to
39239b5
Compare
added 2 commits
June 20, 2023 07:58
This ensures that a let declared property wrapper also has a let declared backing property.
39239b5 to
e557afe
Compare
to generate new R and L values for assignment.
…t a declaration Assignment or initialization of a field could happen in a closure, which means that the check for `let` property wrapped property cannot reply on `getAsDecl()` always producing a valid pointer.
for let wrapped properties.
e557afe to
988b438
Compare
Contributor
|
@swift-ci please build toolchain |
|
What is the status of this proposal? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds support for
letdeclared property wrappers to the Swift language and is the implementation for SE-NNNN Allow Property Wrappers on Let Declarations.At the time of this proposal, let declared property wrappers are not allowed:
This PR implements changes so that the above is legal in Swift and
letwrapped properties are allowed as local and instance variables.