Skip to content

Commit a8f81dd

Browse files
committed
Fix test
1 parent 211ddb7 commit a8f81dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run/errorhandling/kostas.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package optionMockup:
2-
import scala.util.boundary
2+
import scala.util.{boundary, break}
33
object optional:
44
transparent inline def apply[T](inline body: boundary.Label[None.type] ?=> T): Option[T] =
55
boundary(Some(body))
66

77
extension [T](r: Option[T])
88
transparent inline def ? (using label: boundary.Label[None.type]): T = r match
99
case Some(x) => x
10-
case None => label.break(None)
10+
case None => break(None)
1111

1212
import optionMockup.*
1313

0 commit comments

Comments
 (0)