[Test] Add regression tests for issues which are fixed in K2

Related issues:
KT-10879, KT-18055, KT-20617, KT-23873
KT-25668, KT-31191, KT-33108, KT-41013
KT-51827, KT-53886, KT-56624, KT-58447
KT-58458, KT-58751, KT-58814, KT-60597
KT-62806, KT-63258, KT-63444, KT-65101
KT-65408, KT-65844, KT-66186

^KT-65926 Fixed
This commit is contained in:
Dmitriy Novozhilov
2024-02-28 12:13:45 +02:00
committed by Space Team
parent b875ae774e
commit 4b5eac7816
79 changed files with 1719 additions and 0 deletions
@@ -18945,6 +18945,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/functions/kt873.kt");
}
@TestMetadata("lambdaWithTwoContextReceivers.kt")
public void testLambdaWithTwoContextReceivers() {
runTest("compiler/testData/codegen/box/functions/lambdaWithTwoContextReceivers.kt");
}
@TestMetadata("localFunction.kt")
public void testLocalFunction() {
runTest("compiler/testData/codegen/box/functions/localFunction.kt");
@@ -20061,6 +20066,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inference/referenceToCatchParameterFromLambdaExpression.kt");
}
@TestMetadata("safeCastWithElvis.kt")
public void testSafeCastWithElvis() {
runTest("compiler/testData/codegen/box/inference/safeCastWithElvis.kt");
}
@TestMetadata("specialCallsWithCallableReferences.kt")
public void testSpecialCallsWithCallableReferences() {
runTest("compiler/testData/codegen/box/inference/specialCallsWithCallableReferences.kt");
@@ -30962,6 +30972,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@TestMetadata("ifWithReferenceAndLambda.kt")
public void testIfWithReferenceAndLambda() {
runTest("compiler/testData/codegen/box/lambda/ifWithReferenceAndLambda.kt");
}
@TestMetadata("lambda1.kt")
public void testLambda1() {
runTest("compiler/testData/codegen/box/lambda/lambda1.kt");