Introduce an API to convert TypeConstructorMarker to TypeParameterMarker
This commit is contained in:
+5
@@ -207,6 +207,11 @@ class ConeTypeSystemCommonBackendContextForTypeMapping(
|
||||
return this is ConeTypeParameterLookupTag
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.asTypeParameter(): TypeParameterMarker {
|
||||
require(isTypeParameter())
|
||||
return this as ConeTypeParameterLookupTag
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.defaultType(): ConeSimpleKotlinType {
|
||||
require(this is ConeClassifierLookupTag)
|
||||
return when (this) {
|
||||
|
||||
Reference in New Issue
Block a user