[Pitch] Last expression as return value

The inferred type of

let x = {
  // some code without return
  return optional?.voidMethod()
}()

depends on the presence or absence of return ('()?' or '()', resp.). What is the type with the last expression rule, if return is removed?

1 Like