[SR-7224] String.init(_ substring: Substring) is failable on Linux. #49772
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Additional Detail from JIRA
md5: 4de3fa3865c018bf532130f3b1ff7164
Issue Description:
Initializing a String from a Substring is non-failable on iOS, macOS, ...
On Linux, however, this is failable.
For example, the following code compiles when targeting macOS, but gives a compile error on Linux:
The text was updated successfully, but these errors were encountered: