Skip to content

Commit cdd5ffb

Browse files
committed
Adapt REPL test output
1 parent 0e6dc2e commit cdd5ffb

File tree

3 files changed

+6
-4
lines changed
  • compiler/test-resources
  • staging/test-resources/repl-staging

3 files changed

+6
-4
lines changed

compiler/test-resources/repl-macros/i5551

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
scala> import scala.quoted._
22
scala> def assertImpl(expr: Expr[Boolean])(using q: Quotes) = '{ if !($expr) then throw new AssertionError("failed assertion")}
33
def assertImpl
4-
(expr: quoted.Expr[Boolean])(using q: quoted.Quotes): quoted.Expr[Unit]
4+
(expr: quoted.Expr[Boolean])(using q: quoted.Quotes): scala.quoted.Expr[Unit]
55
scala> inline def assert(expr: => Boolean): Unit = ${ assertImpl('{expr}) }
66
def assert(expr: => Boolean): Unit
77

compiler/test-resources/repl/i10355

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
scala> import scala.quoted._
22
scala> def foo(expr: Expr[Any])(using Quotes) = expr match { case '{ $x: t } => '{ $x: Any } }
3-
def foo(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): quoted.Expr[Any]
3+
def foo
4+
(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): scala.quoted.Expr[Any]
45
scala> def bar(expr: Expr[Any])(using Quotes) = expr match { case '{ $x: t } => '{ val a: t = ??? ; ???} }
5-
def bar(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): quoted.Expr[Nothing]
6+
def bar
7+
(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): scala.quoted.Expr[Nothing]

staging/test-resources/repl-staging/i6007

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ scala> import quoted.staging.{Compiler => StagingCompiler, _}
33
scala> implicit def compiler: StagingCompiler = StagingCompiler.make(getClass.getClassLoader)
44
def compiler: quoted.staging.Compiler
55
scala> def v(using Quotes) = '{ (if true then Some(1) else None).map(v => v+1) }
6-
def v(using x$1: quoted.Quotes): quoted.Expr[Option[Int]]
6+
def v(using x$1: quoted.Quotes): scala.quoted.Expr[Option[Int]]
77
scala> scala.quoted.staging.withQuotes(v.show)
88
val res0: String = (if (true) scala.Some.apply[scala.Int](1) else scala.None).map[scala.Int](((v: scala.Int) => v.+(1)))
99
scala> scala.quoted.staging.run(v)

0 commit comments

Comments
 (0)