[FIR] Implement isArrayOrNullableArray for ConeTypeContext
This commit is contained in:
committed by
Ilya Kirillov
parent
06cb64bb51
commit
36ffde5ca8
@@ -458,7 +458,10 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
|
||||
|
||||
override fun arrayType(componentType: KotlinTypeMarker): SimpleTypeMarker = TODO("not implemented")
|
||||
|
||||
override fun KotlinTypeMarker.isArrayOrNullableArray(): Boolean = TODO("not implemented")
|
||||
override fun KotlinTypeMarker.isArrayOrNullableArray(): Boolean {
|
||||
require(this is ConeKotlinType)
|
||||
return this.classId == StandardClassIds.Array
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.isFinalClassOrEnumEntryOrAnnotationClassConstructor(): Boolean {
|
||||
val firRegularClass = toFirRegularClass() ?: return false
|
||||
|
||||
Reference in New Issue
Block a user