[FIR] KT-57195: Don't approximate ft when checking override return types
Why does this check even exist? K1 doesn't do it. ^KT-57195 Fixed
This commit is contained in:
committed by
Space Team
parent
b385d787cc
commit
5505fd207e
+1
-1
@@ -213,7 +213,7 @@ object FirOverrideChecker : FirClassChecker() {
|
||||
return null
|
||||
}
|
||||
|
||||
val bounds = overriddenSymbols.map { context.returnTypeCalculator.tryCalculateReturnType(it).coneType.upperBoundIfFlexible() }
|
||||
val bounds = overriddenSymbols.map { context.returnTypeCalculator.tryCalculateReturnType(it).coneType }
|
||||
|
||||
for (it in bounds.indices) {
|
||||
val overriddenDeclaration = overriddenSymbols[it]
|
||||
|
||||
Reference in New Issue
Block a user