mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[kotlin] Clean up type provider deprecations in Analysis API usages
^KT-68884 GitOrigin-RevId: 12ca6e22249cffbc2afcb4cd62a197d323b1d121
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9c7e738f14
commit
a4810f4939
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user