FIR Java: add minor comment (type parameter types)

This commit is contained in:
Mikhail Glukhikh
2019-11-14 18:40:57 +03:00
parent f60842efe1
commit 3d00212e34
@@ -127,6 +127,8 @@ private fun coneFlexibleOrSimpleType(
if (AbstractStrictEqualityTypeChecker.strictEqualTypes(session.typeContext, lowerBound, upperBound)) {
val lookupTag = lowerBound.lookupTag
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 {
val type = (it as FirResolvedTypeRef).type
type is ConeTypeParameterType || type.isNullable