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 211ddb7 commit a8f81ddCopy full SHA for a8f81dd
tests/run/errorhandling/kostas.scala
@@ -1,13 +1,13 @@
1
package optionMockup:
2
- import scala.util.boundary
+ import scala.util.{boundary, break}
3
object optional:
4
transparent inline def apply[T](inline body: boundary.Label[None.type] ?=> T): Option[T] =
5
boundary(Some(body))
6
7
extension [T](r: Option[T])
8
transparent inline def ? (using label: boundary.Label[None.type]): T = r match
9
case Some(x) => x
10
- case None => label.break(None)
+ case None => break(None)
11
12
import optionMockup.*
13
0 commit comments