Warn about using `return` inside inline callback blocks [ci skip]

Closes #12981
Merge pull request #13271 from chancancode/warn_about_using_return_in_as_callbacks

Warn about using `return` inside inline callback blocks [ci skip]