mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-20 08:31:28 +00:00
Get rid of exception at ConeKotlinType.varargElementType
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user