Add regression test for no resolution recursion
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
fun <T> T.at(element: Int) = this.at()
|
||||||
|
|
||||||
|
fun <T> T.at(): T = this
|
||||||
|
|
||||||
|
fun box(): String = "OK".at()
|
||||||
+6
@@ -16970,6 +16970,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
doTest(fileName);
|
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")
|
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
|
||||||
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
||||||
|
|||||||
@@ -16970,6 +16970,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest(fileName);
|
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")
|
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
|
||||||
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
||||||
|
|||||||
@@ -16970,6 +16970,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
doTest(fileName);
|
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")
|
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
|
||||||
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
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.");
|
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")
|
@TestMetadata("nullabilityForCommonCapturedSupertypes.kt")
|
||||||
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
public void testNullabilityForCommonCapturedSupertypes() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user