Open phausler opened 3 years ago
@swift-ci create
There are two issues here
In asserts builds, the compiler hits an assertion failure because it expects a type to contain no type variables when computing the reference storage type of a member. I think we can just remove that assertion.
In a non-asserts build, the compiler produces an error because it fails to drop the reference storage type before comparing the wrappedValue vs property type for equality On second thought, if you wrote a weak
wrapped value in the property wrapper, you probably want the property you apply the wrapper to to become weak
also.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 22f6b77d5bcf375bef1d8264f1699a86Issue Description:
The following code crashes the compiler:
But the following code compiles just fine: