Skip to content

Commit b560392

Browse files
committed
Adapt i5954 tests
Adapt splice syntax and modify tests to no cancel quotes and splices before the checks
1 parent ad3f519 commit b560392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/neg/i5954.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ object MatcherFactory1 {
66
import scala.quoted._
77

88
def impl2(a: MatcherFactory1)(self: Expr[a.AndNotWord]) =
9-
'{ ~self } // error: access to value a from wrong staging level
9+
'{ val a: Any = $self } // error: access to value a from wrong staging level
1010
}

tests/pos/i5954.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ object MatcherFactory1 {
66
import scala.quoted._
77

88
def impl(self: Expr[MatcherFactory1#AndNotWord]) =
9-
'{ ~self }
9+
'{ val a: Any = $self }
1010

1111

1212
def impl2[T: Type](a: MatcherFactory1)(self: Expr[T])(implicit ev: T =:= a.AndNotWord) =
13-
'{ ~self }
13+
'{ val a: Any = $self }
1414

1515
}

0 commit comments

Comments
 (0)