-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unexpected level-correctness interaction with type alias #6008
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
biboudis
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 4, 2019
Hello again - as per our discussion on #6007, I moved my project over to track nightly and found that this issue persists with one tiny difference: import scala.quoted._
class C {
type T = Int
def fn(e : Expr[T]) : Expr[T] = '{ (); $e }
} Moving the |
Thx for reporting! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails to compile under Dotty 0.13.0-RC1 (specifically; 0.12.0 accepts this) with the following error:
Changing the code like this acts as a workaround:
The weird part is that this suddenly started happening in version 0.13.0-RC1. So, either I was taking advantage of a bug that is now fixed, or there is a new bug.
At least, it doesn't make sense to me how adding this layer of indirection changes the meaning of the program. Since it's a plain
=
alias, there's no chance ofT
ever not being anInt
. In turn, there should be no reason for'{ ~e }
to be looking upC.this
.The text was updated successfully, but these errors were encountered: