Do not perform function inlining if it's not supported
This commit is contained in:
@@ -82,6 +82,7 @@ class KotlinInlineFunctionHandler: InlineActionHandler() {
|
|||||||
"Inline Function is not supported for functions with return statements not at the end of the body."
|
"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)
|
CommonRefactoringUtil.showErrorHint(project, editor, message, "Inline Function", null)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastReturn != null) {
|
if (lastReturn != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user