5fb5cea4a3
When function body can be expression (contains only one statement, and it's return), result was saved to resultExpr, not body. But when result was not used, resultExpr was not used then. Fixed by checking, that result is used in first place.