diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirSuspendCallChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirSuspendCallChecker.kt index a266d745353..3066589595c 100644 --- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirSuspendCallChecker.kt +++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirSuspendCallChecker.kt @@ -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