Skip to content

Commit f7e0d31

Browse files
committed
Fix tests
1 parent 71aac7f commit f7e0d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run/option-extract.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ enum Option[+A]:
66
opaque type ExtractResult[B] = (=> B) => B
77

88
def extract[B](f: A => B): ExtractResult[B] =
9-
def result(default: => B): B = this match
9+
def result(default: => B): B = (this: Option[A]) match
1010
case None => default
1111
case Some(elem) => f(elem)
1212
result

0 commit comments

Comments
 (0)