f(x) => switch(x) { Foo(bar: _) when () => 0 };