-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NoDenotation.owner using string interpolation with -Yexplicit-nulls #10539
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
Comments
The example compiles successfully for me using 3.0.0-M2, 3.0.0-M1, and 3.0.0-RC1-bin-20201127-ed93a48-NIGHTLY. Are you able to reproduce the error with the code as posted? |
Try this: Maybe it is also related to compiler flags or sbt version, not sure. |
I can reproduce the error when using |
We can actually minimize this some more to remove the use of opaque types: object Test:
def foo(x: Int): String = s"$x" When compiled using |
thanks @griggt |
This has been fixed in #9884. |
Minimized code
-Yexplicit-nulls
must be enabled in scalacOptions.Output
Expectation
Compiled successfully.
Notes
if you change s"$uid" to something like toString() or even to s"uid-${uid]" it starts working also.
The text was updated successfully, but these errors were encountered: