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 0918e04 commit b57943dCopy full SHA for b57943d
compiler/test-resources/repl/i6007
@@ -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)
tests/pos/i6008.scala
@@ -0,0 +1,6 @@
+import scala.quoted._
+class C {
+ type T = Int
+ def fn(e : Expr[T]) : Expr[T] = '{ $e }
+}
0 commit comments