The compiler accepts "\(\String.startIndex)"
and rejects "\(\\String.startIndex)"
. This is contrary to what is stated here:
You've only linked to the section headings, but I presume you mean the following paragraphs:
Other examples (accepted by the compiler):
print("Single-line and \("""
multi\
line
""") string literals.")
print("""
Multiline and \(
"single-line"
) string literals.
""")