[SR-10816] Changes from SE-0213 break source compatibility in Swift 4 mode #53206
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
macOS
Xcode 10.1 (Swift 4.2.1) and Xcode 10.2.1 (Swift 5.0.1)
Additional Detail from JIRA
md5: 1d1a6270823a72363a7fad6cc34df65c
relates to:
ExpressibleByStringLiteral
masks an initializer without any warning in Swift 5.Issue Description:
Steps to reproduce
Note: This issue affects the Swift-4 mode of the Swift 5 compiler.
Expected result
The code should behave the same in both.
Actual result
In Swift 4, the output is:
In Swift-4 compatibility mode, the output is:
Discussion
I understand that this change in behavior is the result of SE-0213. But, I think that change was only supposed to affect Swift 5 mode.
See this thread on the Swift forums.
The text was updated successfully, but these errors were encountered: