[SR-8490] objc readonly property overriden to readwrite in subclass incorrectly bridged as get-only (Swift 4.2 regression) #51011
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Attachment: Download
Environment
Xcode 10.0 beta 5 (10L221o)
Additional Detail from JIRA
md5: 263f93699fc38d78453e79f78753428c
Issue Description:
Given a objc base class that has a readonly property and also conforms to ProtocolA:
Where ProtocolA defines a getter for a property:
A subclass that redefines the property as readwrite:
The property is incorrectly bridged to readonly in Swift:
This is a regression from Swift 4 / Xcode 9.4.1 (9F2000) where the property is bridged as readwrite.
Attached sample project that includes the code above.
The text was updated successfully, but these errors were encountered: