Do not perform function inlining if it's not supported

This commit is contained in:
Mikhail Glukhikh
2017-03-21 15:23:30 +03:00
parent de861066bf
commit 342118dfa8
@@ -82,6 +82,7 @@ class KotlinInlineFunctionHandler: InlineActionHandler() {
"Inline Function is not supported for functions with return statements not at the end of the body."
)
CommonRefactoringUtil.showErrorHint(project, editor, message, "Inline Function", null)
return
}
if (lastReturn != null) {