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
This fails to compile under Dotty 0.13.0-RC1 (specifically; 0.12.0 accepts this) with the following error:
3 | def fn(e : Expr[T]) : Expr[T] = '{ ~e }
| ^^
| access to C.this from wrong staging level:
| - the definition is at level 0,
| - but the access is at level 1.
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 of T ever not being an Int. In turn, there should be no reason for '{ ~e } to be looking up C.this.
The text was updated successfully, but these errors were encountered:
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: