Minor. Add tests and comment about copying generic parameters to

constructor, but not function reference to the constructor.

 #KT-32162
This commit is contained in:
Ilmir Usmanov
2022-01-31 06:21:59 +01:00
parent 84ccf412cb
commit 00a08fc6a4
16 changed files with 364 additions and 0 deletions
@@ -19242,6 +19242,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class GenericUnderlyingValue extends AbstractLightAnalysisModeTest {
@TestMetadata("arrayIC.kt")
public void ignoreArrayIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt");
}
@TestMetadata("primitive.kt")
public void ignorePrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -19250,6 +19260,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt");
}
@TestMetadata("recursive.kt")
public void testRecursive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/recursive.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/simple.kt");