[SR-11994] Open class cannot be a PropertyWrapper #54428
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
property wrappers
Feature: property wrappers
type checker
Area → compiler: Semantic analysis
Environment
Xcode Version 11.3 (11C29)
Swift 5.1
Additional Detail from JIRA
md5: d3f7e4c06cfb726dfc243ef2cf442ab2
Issue Description:
I have an open class that I wanted also to be a property wrapper.
The problem is that the property wrapper requires the initializer to have the same visibility modifier as the class (open in this case), but the initilizers cannot be open, so it's a cycle.
Here is a code sample with the Xcode errors as a comment.
The text was updated successfully, but these errors were encountered: