// Regression test crash
declare function f(string): void;
function test(x: 1 | 2 | 3, o: {foo: string}) {
  const a = o.foo || '';
  const b = f("foo");

  match (x) {
    1 => {
      return;
    }
    2 => {
      return;
    }
    3 => {
      return;
    }
  }
}
