[SR-10475] Protocol ordering in file matters in Swift 5 #52875
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
Tested in:
Xcode Version 10.1 (10B61)
Xcode Version 10.2 (10E125)
Additional Detail from JIRA
md5: 81c01089b0ad9a7b9e4a35dbc1d68c2b
Issue Description:
Three examples of very similar code.
All three compile in Xcode 10.1/Swift 4.2.
Two of three compile in Xcode 10.2/Swift 5.
Identification and differences among the three are described in inline comments.
If Example 1 is split into two files (one for each protocol and its extension, if appropriate), it compiles in Xcode 10.1/Swift 4.2 but does not compile in Xcode 10.2/Swift 5.0.
The text was updated successfully, but these errors were encountered: