-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f interpolator doesn't process backslash escapes #11750
Comments
I don't think it's the parser. Interpolated strings do not process |
yes, the interpolator should handle the escapes. i haven't checked why it doesn't do so in dotty |
Why is this a "transform" issue? Isn't the F-interpolator a macro? |
Assigning Nico, since his student worked on the interpolator. |
By coincidence, my dotty repo is on the branch for #9939 where I've only collected examples of divergent behavior. Every 6 months or so, I intend to take a look. |
It used to be a macro but it's been intrinsified in the compiler: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/localopt/StringContextChecker.scala |
We still want to port the Scala 2 implementation of the |
Same solution as in #9939 (comment) |
Scala 2:
Scala 3:
The text was updated successfully, but these errors were encountered: