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 cb86e3b commit 58e79a9Copy full SHA for 58e79a9
library/src/scala/quoted/Quotes.scala
@@ -48,6 +48,15 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
48
given Quotes = Quotes.this
49
summon[FromExpr[T]].unapply(self)
50
51
+ /** Return the value of this expression.
52
+ *
53
+ * Emits an error and throws if the expression does not represent a value or possibly contains side effects.
54
+ * Otherwise returns the value.
55
+ */
56
+ @deprecated("Use valueOrThrow", ">3.0.0-RC2")
57
+ inline def valueOrError(using inline e: FromExpr[T]): T =
58
+ valueOrThrow
59
+
60
/** Return the value of this expression.
61
*
62
* Emits an error and throws if the expression does not represent a value or possibly contains side effects.
0 commit comments