[kotlin] Clean up type provider deprecations in Analysis API usages

^KT-68884

GitOrigin-RevId: 12ca6e22249cffbc2afcb4cd62a197d323b1d121
This commit is contained in:
Yan Zhulanow
2024-07-11 18:49:25 +09:00
committed by intellij-monorepo-bot
parent 9c7e738f14
commit a4810f4939
30 changed files with 56 additions and 55 deletions

View File

@@ -19,7 +19,7 @@ import org.jetbrains.kotlin.analysis.api.types.KaTypeParameterType
*/
context(KaSession)
infix fun KaType.isPossiblySubTypeOf(superType: KaType): Boolean {
if (this is KaTypeParameterType) return this.hasCommonSubTypeWith(superType)
if (this is KaTypeParameterType) return this.hasCommonSubtypeWith(superType)
if (superType is KaTypeParameterType) return superType.symbol.upperBounds.all { this isPossiblySubTypeOf it }