K2: Emulate K1 behavior in case of when-elvis combination

^KT-55692 Related
This commit is contained in:
Denis.Zharkov
2022-12-07 09:57:42 +01:00
committed by Space Team
parent e46ef0bbec
commit 181f23bd8d
6 changed files with 50 additions and 0 deletions
@@ -14066,6 +14066,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inference/dontThrowEmptyIntersectionException.kt");
}
@Test
@TestMetadata("elvisInsideWhen.kt")
public void testElvisInsideWhen() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/elvisInsideWhen.kt");
}
@Test
@TestMetadata("equalitySubstitutionInsideNonInvariantType.kt")
public void testEqualitySubstitutionInsideNonInvariantType() throws Exception {