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
@@ -18434,6 +18434,30 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt");
}
@Test
@TestMetadata("arrayIC.kt")
public void testArrayIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt");
}
@Test
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.kt");
}
@Test
@TestMetadata("recursive.kt")
public void testRecursive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/recursive.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -18398,6 +18398,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt");
}
@Test
@TestMetadata("arrayIC.kt")
public void testArrayIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt");
}
@Test
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.kt");
}
@Test
@TestMetadata("recursive.kt")
public void testRecursive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/recursive.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -15564,6 +15564,26 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt");
}
@TestMetadata("arrayIC.kt")
public void testArrayIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt");
}
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.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");