Post #1652042
2026-04-06 18:12 UTC
Nothing useful in the implementation - https://github.com/scala/scala3/pull/20987
Only way to know? Run an example:
```
(Some("a"), Some("b")).runtimeChecked.match {
case (Some(_), None) => println("a")
case (None, Some(_)) => println("b")
}
```
https://scastie.scala-lang.org/0snylcSNRS6l26fzZGWqFg
Ok, seems to throw somekind of MatchError :yell:
Replies (1)
-
@vascorsd@mastodon.social 2026-04-06 18:16
At least if this should be a better choice than "throw IllegalStateException("potato should not be possible") we should be able to put a custom message in it.