Get rid of exception at ConeKotlinType.varargElementType
This commit is contained in:
@@ -398,5 +398,5 @@ internal fun FirExpression.getExpectedType(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun ConeKotlinType.varargElementType(): ConeKotlinType {
|
fun ConeKotlinType.varargElementType(): ConeKotlinType {
|
||||||
return this.arrayElementType() ?: error("Failed to extract! ${this.render()}!")
|
return this.arrayElementType() ?: this
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user