Skip to content

Commit b61fd56

Browse files
committed
Fix #6007: Add a repl scripted test
1 parent 0918e04 commit b61fd56

File tree

1 file changed

+10
-0
lines changed
  • compiler/test-resources/repl

1 file changed

+10
-0
lines changed

compiler/test-resources/repl/i6007

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
scala> import quoted.Toolbox.Default._
2+
3+
scala> val v = '{ (if true then Some(1) else None).map(v => v+1) }
4+
val v: quoted.Expr[Option[Int]] = Expr(<pickled tasty>)
5+
6+
scala> v.show
7+
val res0: String = if (true) scala.Some.apply[scala.Int](1) else scala.None.map[scala.Int](((v: scala.Int) => v.+(1)))
8+
9+
scala> v.run
10+
val res1: Option[Int] = Some(2)

0 commit comments

Comments
 (0)