[SR-12023] Generics with Self on class type failing compiler #54460
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 807330616794d991a0e0b64873f80e22
duplicates:
Issue Description:
See forum thread for more details:
https://forums.swift.org/t/property-wrappers-access-to-both-enclosing-self-and-wrapper-instance/32526
This property wrapper compiles, but not when used:
When used, the compiler fails:
Replacing `Self` with `Wrapper` in the code fixes the issue. If I keep `Self`, I can also change the class to a struct to fix the issue.
The text was updated successfully, but these errors were encountered: