add check in CallInliner.perform() to see if we are replacing an implicit yield with a non-implicit yield and instead replace with the yield's expression
add new test to InlineMethodTests16
fixes #1439
What it does
Fixes case where a method returning a single constant is inlined into the case expression of a switch expression. We don't want to add a yield statement in such a case, just the constant.
What it does
Fixes case where a method returning a single constant is inlined into the case expression of a switch expression. We don't want to add a yield statement in such a case, just the constant.
How to test
See issue or new test.
Author checklist