FIR Java: add minor comment (type parameter types)
This commit is contained in:
@@ -127,6 +127,8 @@ private fun coneFlexibleOrSimpleType(
|
|||||||
if (AbstractStrictEqualityTypeChecker.strictEqualTypes(session.typeContext, lowerBound, upperBound)) {
|
if (AbstractStrictEqualityTypeChecker.strictEqualTypes(session.typeContext, lowerBound, upperBound)) {
|
||||||
val lookupTag = lowerBound.lookupTag
|
val lookupTag = lowerBound.lookupTag
|
||||||
if (lookupTag is ConeTypeParameterLookupTag && !lowerBound.isMarkedNullable) {
|
if (lookupTag is ConeTypeParameterLookupTag && !lowerBound.isMarkedNullable) {
|
||||||
|
// TODO: we need enhancement for type parameter bounds for this code to work properly
|
||||||
|
// At this moment, this condition is always true
|
||||||
if (lookupTag.typeParameterSymbol.fir.bounds.any {
|
if (lookupTag.typeParameterSymbol.fir.bounds.any {
|
||||||
val type = (it as FirResolvedTypeRef).type
|
val type = (it as FirResolvedTypeRef).type
|
||||||
type is ConeTypeParameterType || type.isNullable
|
type is ConeTypeParameterType || type.isNullable
|
||||||
|
|||||||
Reference in New Issue
Block a user