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?
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?