From c2d9fc469a3057e670fa15a8e1a72f5d10a461ff Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 10 Sep 2020 09:39:11 +0300 Subject: [PATCH] Get rid of exception at ConeKotlinType.varargElementType --- .../src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt index b09da067378..d0b4333312a 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt @@ -398,5 +398,5 @@ internal fun FirExpression.getExpectedType( } fun ConeKotlinType.varargElementType(): ConeKotlinType { - return this.arrayElementType() ?: error("Failed to extract! ${this.render()}!") + return this.arrayElementType() ?: this }