[SR-9469] 'read' and 'modify' accessors are not allowed to be marked @objc #51931
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 5.0
Environment
Swift 5.0, master branch (71c11b7)
macOS 10.14.2
Additional Detail from JIRA
md5: 6a091a93ec93f0cd96cc7cd9121fdf2d
Issue Description:
The following code fails to compile on the master branch with the error, "'read' and 'modify' accessors are not allowed to be marked @objc". It will compile if you remove the setter or the
@objc
attribute on the extension. (You can leave the@objc
attribute on the static variable declaration.)The text was updated successfully, but these errors were encountered: