FIR Java: record Java types with flexible nullability
This commit is contained in:
committed by
teamcityserver
parent
1f48092ec1
commit
fc7f589caa
@@ -15,11 +15,12 @@ import org.jetbrains.kotlin.name.ClassId
|
||||
|
||||
fun ConeClassifierLookupTag.constructType(
|
||||
typeArguments: Array<out ConeTypeProjection>,
|
||||
isNullable: Boolean
|
||||
isNullable: Boolean,
|
||||
attributes: ConeAttributes = ConeAttributes.Empty
|
||||
): ConeLookupTagBasedType {
|
||||
return when (this) {
|
||||
is ConeTypeParameterLookupTag -> ConeTypeParameterTypeImpl(this, isNullable)
|
||||
is ConeClassLikeLookupTag -> this.constructClassType(typeArguments, isNullable)
|
||||
is ConeTypeParameterLookupTag -> ConeTypeParameterTypeImpl(this, isNullable, attributes)
|
||||
is ConeClassLikeLookupTag -> this.constructClassType(typeArguments, isNullable, attributes)
|
||||
else -> error("! ${this::class}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user