[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:
Nikolay Lunyak
2023-03-13 13:26:27 +02:00
committed by Space Team
parent b385d787cc
commit 5505fd207e
7 changed files with 73 additions and 1 deletions
@@ -657,6 +657,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/OverrideFunctionWithParamDefaultValue.kt");
}
@Test
@TestMetadata("overrideNotNull_Fail.kt")
public void testOverrideNotNull_Fail() throws Exception {
runTest("compiler/testData/diagnostics/tests/overrideNotNull_Fail.kt");
}
@Test
@TestMetadata("overrideNotNull_Ok.kt")
public void testOverrideNotNull_Ok() throws Exception {
runTest("compiler/testData/diagnostics/tests/overrideNotNull_Ok.kt");
}
@Test
@TestMetadata("OverridenFunctionAndSpecifiedTypeParameter.kt")
public void testOverridenFunctionAndSpecifiedTypeParameter() throws Exception {