[FE] Add missing 'lazyResolveToPhase()' before recursive bound check
^KTIJ-24087 Fixed
This commit is contained in:
@@ -338,6 +338,7 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
|
||||
|
||||
override fun TypeParameterMarker.hasRecursiveBounds(selfConstructor: TypeConstructorMarker?): Boolean {
|
||||
require(this is ConeTypeParameterLookupTag)
|
||||
this.typeParameterSymbol.lazyResolveToPhase(FirResolvePhase.TYPES)
|
||||
return this.bounds().any { typeRef ->
|
||||
typeRef.coneType.contains { it.typeConstructor() == this.getTypeConstructor() }
|
||||
&& (selfConstructor == null || typeRef.coneType.typeConstructor() == selfConstructor)
|
||||
|
||||
Reference in New Issue
Block a user