We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3f519 commit b560392Copy full SHA for b560392
tests/neg/i5954.scala
@@ -6,5 +6,5 @@ object MatcherFactory1 {
6
import scala.quoted._
7
8
def impl2(a: MatcherFactory1)(self: Expr[a.AndNotWord]) =
9
- '{ ~self } // error: access to value a from wrong staging level
+ '{ val a: Any = $self } // error: access to value a from wrong staging level
10
}
tests/pos/i5954.scala
@@ -6,10 +6,10 @@ object MatcherFactory1 {
def impl(self: Expr[MatcherFactory1#AndNotWord]) =
- '{ ~self }
+ '{ val a: Any = $self }
11
12
def impl2[T: Type](a: MatcherFactory1)(self: Expr[T])(implicit ev: T =:= a.AndNotWord) =
13
14
15
0 commit comments