Appearance
Cases are tried in order, and the earlier ones already match everything this one does, so it never runs.
match o { case _: return 0 case Some(x): return x }
match o { case Some(x): return x case _: return 0 }