Absence of type is not enough for concluding function has type inference
This commit is contained in:
@@ -65,7 +65,7 @@ public final class JetModifiableBlockHelper {
|
||||
if (declaration != null) {
|
||||
if (declaration instanceof JetNamedFunction) {
|
||||
JetNamedFunction function = (JetNamedFunction) declaration;
|
||||
if (!function.hasDeclaredReturnType()) {
|
||||
if (!function.hasDeclaredReturnType() && !function.hasBlockBody()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user