[SR-10011] Raw string with 1 double quote give compiler error about multi line strings #52414
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
parser
Area → compiler: The legacy C++ parser
Attachment: Download
Environment
Swift 5.0 Snapshot from February 26, 2019
swift --version && uname -a output:
Platform: MacOS
Additional Detail from JIRA
md5: 149b5f8191cb3508a0fd3fbf217154b8
Issue Description:
With the new raw strings in Swift 5, double quotes (") don't have to be escaped anymore (")
However, if I wanted a string containing just " an error will occur.
The code would look like this:
where I'd get the following compiler errors:
If you need any more info, feel free to ping me 🙂
The text was updated successfully, but these errors were encountered: