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 429c1f2 commit 6b27cb6Copy full SHA for 6b27cb6
library/src/scala/quoted/Expr.scala
@@ -2,7 +2,7 @@ package scala.quoted
2
3
import scala.runtime.quoted.Unpickler.Pickled
4
5
-sealed abstract class Expr[T] {
+sealed abstract class Expr[+T] {
6
final def unary_~ : T = throw new Error("~ should have been compiled away")
7
8
/** Evaluate the contents of this expression and return the result.
tests/pos/i4891.scala
@@ -0,0 +1,5 @@
1
+import scala.quoted._
+
+object Test {
+ def foo: Expr[Option[String]] = '(None)
+}
0 commit comments