Add regression test for no resolution recursion

This commit is contained in:
Stanislav Erokhin
2017-08-18 12:04:45 +03:00
parent d9eef94a8e
commit 74e07b6580
5 changed files with 29 additions and 0 deletions
@@ -0,0 +1,5 @@
fun <T> T.at(element: Int) = this.at()
fun <T> T.at(): T = this
fun box(): String = "OK".at()
@@ -16970,6 +16970,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
doTest(fileName);
}
@TestMetadata("noResolutionRecursion.kt")
public void testNoResolutionRecursion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt");
doTest(fileName);
}
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
@@ -16970,6 +16970,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("noResolutionRecursion.kt")
public void testNoResolutionRecursion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt");
doTest(fileName);
}
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
@@ -16970,6 +16970,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
doTest(fileName);
}
@TestMetadata("noResolutionRecursion.kt")
public void testNoResolutionRecursion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt");
doTest(fileName);
}
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
@@ -20744,6 +20744,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("noResolutionRecursion.kt")
public void testNoResolutionRecursion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt");
doTest(fileName);
}
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");