From d787df3880e528c75122796e18aaa7d37ffb1edd Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Mon, 9 Sep 2019 18:26:03 +0300 Subject: [PATCH] Minor. Reformat ConeKotlinType::isBuiltinFunctionalType --- .../kotlin/fir/resolve/calls/PostponedArguments.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/PostponedArguments.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/PostponedArguments.kt index 07389b2d66a..6032aa49c46 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/PostponedArguments.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/PostponedArguments.kt @@ -43,11 +43,10 @@ fun preprocessLambdaArgument( } -private val ConeKotlinType.isBuiltinFunctionalType: Boolean - get () { - val type = this - return when (type) { - is ConeClassType -> type.lookupTag.classId.asString().startsWith("kotlin/Function") +val ConeKotlinType.isBuiltinFunctionalType: Boolean + get() { + return when (this) { + is ConeClassType -> this.lookupTag.classId.asString().startsWith("kotlin/Function") else -> false } }