Implement inferring materialized self types through a default type in ResultTypeResolver
This commit is contained in:
@@ -180,6 +180,11 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
|
||||
return this.arguments[index]
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.getArguments(): List<TypeArgumentMarker> {
|
||||
require(this is KotlinType, this::errorMessage)
|
||||
return this.arguments
|
||||
}
|
||||
|
||||
override fun TypeArgumentMarker.isStarProjection(): Boolean {
|
||||
require(this is TypeProjection, this::errorMessage)
|
||||
return this.isStarProjection
|
||||
|
||||
Reference in New Issue
Block a user