[SR-12839] Underscore variable with same name as published var crashes compiler #55285
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
property wrappers
Feature: property wrappers
Environment
macOS Catalina Version 10.15.4 (19E287)
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)
Additional Detail from JIRA
md5: ae50e303b3b717be892e6a7c67dfffd4
is duplicated by:
Issue Description:
This code's a compiler crasher:
Crash log:
Interestingly, the crash doesn't occur if you use your own
@propertyWrapper
:Compiler error (but no crash):
The text was updated successfully, but these errors were encountered: