Minor. Reformat ConeKotlinType::isBuiltinFunctionalType

This commit is contained in:
Denis Zharkov
2019-09-09 18:26:03 +03:00
parent 0431c21f9a
commit d787df3880
@@ -43,11 +43,10 @@ fun preprocessLambdaArgument(
} }
private val ConeKotlinType.isBuiltinFunctionalType: Boolean val ConeKotlinType.isBuiltinFunctionalType: Boolean
get () { get() {
val type = this return when (this) {
return when (type) { is ConeClassType -> this.lookupTag.classId.asString().startsWith("kotlin/Function")
is ConeClassType -> type.lookupTag.classId.asString().startsWith("kotlin/Function")
else -> false else -> false
} }
} }