Implement inferring materialized self types through a default type in ResultTypeResolver
This commit is contained in:
@@ -177,6 +177,11 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
|
||||
return this.typeArguments.getOrNull(index) ?: ConeStarProjection
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.getArguments(): List<TypeArgumentMarker> {
|
||||
require(this is ConeKotlinType)
|
||||
return this.typeArguments.toList()
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.asTypeArgument(): TypeArgumentMarker {
|
||||
require(this is ConeKotlinType)
|
||||
return this
|
||||
|
||||
Reference in New Issue
Block a user