Move lambda out: don't report in delegation #KT-27584 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8ea8acc7f7
commit
9b49c23668
@@ -123,6 +123,7 @@ fun KtCallExpression.getLastLambdaExpression(): KtLambdaExpression? {
|
||||
}
|
||||
|
||||
fun KtCallExpression.canMoveLambdaOutsideParentheses(): Boolean {
|
||||
if (getStrictParentOfType<KtDelegatedSuperTypeEntry>() != null) return false
|
||||
if (getLastLambdaExpression() == null) return false
|
||||
|
||||
val callee = calleeExpression
|
||||
|
||||
Reference in New Issue
Block a user