We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.0
val str = "test" class Test { s"$str" }
-- Error: ---------------------------------------------------------------------- 2 |class Test { s"$str" } | ^ | unclosed string literal
Compiles as in 3.1.x.
This seems to be a particular issue about initializers. Here are a few instances that work:
{ val str = "test"; s"$str" } class Test(str: String) { def test = s"$str" } { val str = "test"; trait Test { s"${str}" } }
The text was updated successfully, but these errors were encountered:
Seems to be fixed in 3.2.1-RC1 so just filing for reference. Maybe same/similar cause as #15514?
Sorry, something went wrong.
Yes, that is the same issue. The shared element is the string interpolation in "self-type" position of a template.
No branches or pull requests
Compiler version
3.2.0
Minimized code
Output
Expectation
Compiles as in 3.1.x.
This seems to be a particular issue about initializers. Here are a few instances that work:
The text was updated successfully, but these errors were encountered: