If I do add it, as in `fun justLoop(): Nothing { w...
# announcements
l
If I do add it, as in
fun justLoop(): Nothing { while (true) {} }
, the code does compile.
d
This actually returns Nothing.
l
I think you mean to say, if I actually specify
Nothing
as the return type, then it will indeed "return"
Nothing
, whereas if I don't specify
Nothing
, then the inferred
Unit
is "returned"?
d
Precisely. 😁
l
Cool, thanks.