FirSuspendCallChecker: make infix call check more clear
This commit is contained in:
committed by
teamcityserver
parent
3c2e266c31
commit
354a06b94a
+1
-1
@@ -112,7 +112,7 @@ object FirSuspendCallChecker : FirQualifiedAccessExpressionChecker() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (source?.elementType == KtNodeTypes.BINARY_EXPRESSION) {
|
||||
if (origin == FirFunctionCallOrigin.Infix) {
|
||||
val lastArgument = arguments.lastOrNull()
|
||||
if (lastArgument is FirAnonymousFunctionExpression && source?.getChild(KtNodeTypes.PARENTHESIZED, depth = 1) == null) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user