Open Gotyanov opened 2 years ago
Issue Description:
minimal code to reproduce:
@propertyWrapper struct Wrapper<Value> { var wrappedValue: Value } struct A {} struct B { var a: A } func test() { @Wrapper var a = A() // error: Closure captures '_a' before it is declared func makeB() -> B { @Wrapper var b = B(a: a) return b } }
Got the same issue((
Environment
Xcode 13 swift-5.5-DEVELOPMENT-SNAPSHOT-2021-10-07-a swift-DEVELOPMENT-SNAPSHOT-2021-10-05-aAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 1 | |Component/s | Compiler | |Labels | Bug, PropertyWrappers | |Assignee | None | |Priority | Medium | md5: ebf0aee26afa5ee4ff03530cc7f90e02Issue Description:
minimal code to reproduce: