export const run = <T>(f: () => T): T => f();
const inferred_type = run(() => { switch(blah) { ... } })
const inferred = (() => "Hello")() // Inferred as "string"
const myFn = () => { switch(...) } const inferred = myFn()