You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spurious warning is the least problematic part of the bug.
scala> """\/ \/ /\"""
^
warning: Unicode escapes in triple quoted strings are deprecated, use the literal character instead
val res0: String = \/ \/ /
scala> raw"\/ \/ /\"
^
warning: Unicode escapes in raw interpolations are deprecated. Use literal characters instead.
val res4: String = \/ \/ /
martijnhoekstra
changed the title
Spurious error about unicode escapes
Triple quoted strings and raw interpolated strings swallow trailing backslash and emit spurious warning
Apr 30, 2020
When a string or raw interpolator ends with a backslash, that backslash is swallowed if there are additional backslashes in the string, at least 5 positions before the end.
reproduction steps
"""\/ \/ /\"""
problem
expectation
Silence from scalac. I'm not using a unicode escape.
The text was updated successfully, but these errors were encountered: