swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.49k stars 10.35k forks source link

[SR-11152] property wrappers again: `Self` resolves to the wrong type #53549

Open tayloraswift opened 5 years ago

tayloraswift commented 5 years ago
Previous ID SR-11152
Radar rdar://problem/53258469
Original Reporter @kelvin13
Type Bug

Attachment: Download

Environment `$ swift --version` `Swift version 5.1-dev (LLVM 200186e28b, Swift 75a5496bc1)` `Target: x86_64-unknown-linux-gnu`
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | Compiler | |Labels | Bug, PropertyWrappers | |Assignee | None | |Priority | Medium | md5: 95857590132a42c71b198f8f66dc2574

Issue Description:

The attached test file works if the `Self` annotation on line 14 is changed to `State\<Value>`.

belkadan commented 5 years ago

Yikes, thanks.

@swift-ci create