I do that (but define it as an extension of Unit w...
# intellij
n
I do that (but define it as an extension of Unit which is the only case where this matters I think) But it would be nice to use a language feature
h
yeah that'd pollute less
k
It doesn't really work though, what if I call functions that actually return stuff?
n
Then when is checked for exhaustiveness
It is only not checked when used as a statement
k
No, it's only checked if you actually (pretend to) use the value.
n
Ah I see. Ignoring a result makes it considered a statement too?
k
Yeah.
n
In that case yes, it’d have to be an extension of Any?