[KLIB] Fix references to type made from TypeParameter in KotlinMangler

- promote ABI version
This commit is contained in:
Roman Artemev
2019-12-04 17:45:09 +03:00
committed by romanart
parent 3544bf17f4
commit cad3cb1bbe
7 changed files with 139 additions and 42 deletions
@@ -4477,6 +4477,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/inlineMultiModule/topLevelNestedInline.kt");
}
@TestMetadata("typeParametersMangling.kt")
public void testTypeParametersMangling() throws Exception {
runTest("js/js.translator/testData/box/inlineMultiModule/typeParametersMangling.kt");
}
@TestMetadata("typealiases.kt")
public void testTypealiases() throws Exception {
runTest("js/js.translator/testData/box/inlineMultiModule/typealiases.kt");
@@ -4492,6 +4492,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/inlineMultiModule/topLevelNestedInline.kt");
}
@TestMetadata("typeParametersMangling.kt")
public void testTypeParametersMangling() throws Exception {
runTest("js/js.translator/testData/box/inlineMultiModule/typeParametersMangling.kt");
}
@TestMetadata("typealiases.kt")
public void testTypealiases() throws Exception {
runTest("js/js.translator/testData/box/inlineMultiModule/typealiases.kt");
@@ -0,0 +1,18 @@
// EXPECTED_REACHABLE_NODES: 1286
// MODULE: lib
// FILE: lib.kt
class C<V>(val v: V) {
fun <R1, R2: List<R1>> reduce(reducer: (reduction: V) -> R2) {}
fun <R1, R2: List<R1>> reduce(reducer: (reduction: R1) -> R2) {}
}
// MODULE: main(lib)
// FILE: main.kt
fun box(): String {
val c = C(42)
return "OK"
}