Closed ta0kira closed 3 years ago
For some reason the following skips generating the call to foo:
foo
_ <- foo()
So far I've seen it in unittest, but haven't checked it in normal functions.
unittest
The issue was that single-return calls used inline assignment of returns, which were "optimized out" when the value is discarded.
For some reason the following skips generating the call to
foo
:So far I've seen it in
unittest
, but haven't checked it in normal functions.