Skip to content

Commit

Permalink
Adapt i5954 tests
Browse files Browse the repository at this point in the history
Adapt splice syntax and modify tests to no cancel quotes and splices before the checks
  • Loading branch information
nicolasstucki committed Feb 21, 2019
1 parent ad3f519 commit b560392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/neg/i5954.scala
Expand Up @@ -6,5 +6,5 @@ object MatcherFactory1 {
import scala.quoted._

def impl2(a: MatcherFactory1)(self: Expr[a.AndNotWord]) =
'{ ~self } // error: access to value a from wrong staging level
'{ val a: Any = $self } // error: access to value a from wrong staging level
}
4 changes: 2 additions & 2 deletions tests/pos/i5954.scala
Expand Up @@ -6,10 +6,10 @@ object MatcherFactory1 {
import scala.quoted._

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


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

}

0 comments on commit b560392

Please sign in to comment.