Closed hoangatuan closed 10 months ago
@rakaramos @ZevEisenberg Hi, please take a look. I can help to fix this issue
hi @hoangatuan, which version of Muter are you using, on 16
(installed using brew) this is skipped.
could you please try with that version? Or, if not possible, use muter:disable
while the fix isn't there yet?
Hi @rakaramos, I'm using the latest code on master branch
I just checked. You've removed the logic check for implicit return in the change recently
Describe the bug
If a function uses an implicit return, RemoveSideEffectsOperator treats it as a side effect and removes it.
To Reproduce
Given this piece of code:
Current behavior
After running Muter, here is the generated code, which cause compile error:
Expected behavior
Implicit return is not side effect, so we shouldn't remove it