[SR-4185] Swift 3.1: Static property on String breaks string interpolation #46768
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Environment
Xcode: Version 8.2.1 (8C1002)
macOS: 10.12.3 (16D32)
For Swift 3.1, used the 3.1 Snapshot dated March 6, 2017.
Additional Detail from JIRA
md5: 02059bb474a34b9252238bb3a65f304b
Issue Description:
The following code compiles using Swift 3.0.2/Xcode 8.2; it reports an error using Xcode 8.3 beta 3 and the latest Swift 3.1 snapshot:
Before and after:
Changing the print call to:
fixes the error in both compilers.
Also filed in Radar as 30885036.
The text was updated successfully, but these errors were encountered: