[KLIB] ABI reader: Tests for DNN & dynamic types
^KT-54402
This commit is contained in:
committed by
Space Team
parent
a95f963ad3
commit
18668539e9
@@ -0,0 +1,3 @@
|
|||||||
|
// MODULE: specific_types_library
|
||||||
|
|
||||||
|
fun <A, B, C> dnn() where A : Appendable?, B : Appendable, B : Any, C : A & Any = Unit
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// Rendering settings:
|
||||||
|
// - Signature version: 1
|
||||||
|
// - Show manifest properties: false
|
||||||
|
// - Show declarations: true
|
||||||
|
|
||||||
|
// Library unique name: <specific_types_library>
|
||||||
|
final fun <#A: kotlin.text/Appendable?, #B: kotlin.text/Appendable & kotlin/Any, #C: #A!!> /dnn() // /dnn|1502495368240316138[0]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// Rendering settings:
|
||||||
|
// - Signature version: 2
|
||||||
|
// - Show manifest properties: false
|
||||||
|
// - Show declarations: true
|
||||||
|
|
||||||
|
// Library unique name: <specific_types_library>
|
||||||
|
final fun <#A: kotlin.text/Appendable?, #B: kotlin.text/Appendable & kotlin/Any, #C: #A!!> /dnn() // /dnn|dnn(){0§<kotlin.text.Appendable?>;1§<kotlin.text.Appendable&kotlin.Any>;2§<0:0>}[0]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// EXCLUDED_CLASSES: /dynamic
|
||||||
|
// TARGET_BACKEND: JS_IR
|
||||||
|
// MODULE: specific_types_library
|
||||||
|
|
||||||
|
@Suppress("ClassName") class dynamic
|
||||||
|
fun returnsDynamic(): dynamic = TODO()
|
||||||
|
fun returnsDynamicClass(): `dynamic` = TODO()
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Rendering settings:
|
||||||
|
// - Signature version: 1
|
||||||
|
// - Show manifest properties: false
|
||||||
|
// - Show declarations: true
|
||||||
|
|
||||||
|
// Library unique name: <specific_types_library>
|
||||||
|
final fun /returnsDynamic(): dynamic // /returnsDynamic|820938284722403626[0]
|
||||||
|
final fun /returnsDynamicClass(): /dynamic // /returnsDynamicClass|6179391246746528953[0]
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Rendering settings:
|
||||||
|
// - Signature version: 2
|
||||||
|
// - Show manifest properties: false
|
||||||
|
// - Show declarations: true
|
||||||
|
|
||||||
|
// Library unique name: <specific_types_library>
|
||||||
|
final fun /returnsDynamic(): dynamic // /returnsDynamic|returnsDynamic(){}[0]
|
||||||
|
final fun /returnsDynamicClass(): /dynamic // /returnsDynamicClass|returnsDynamicClass(){}[0]
|
||||||
+12
@@ -103,6 +103,18 @@ public class ClassicJsLibraryAbiReaderTestGenerated extends AbstractClassicJsLib
|
|||||||
runTest("compiler/util-klib-abi/testData/content/root_package.kt");
|
runTest("compiler/util-klib-abi/testData/content/root_package.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("specific_types_dnn.kt")
|
||||||
|
public void testSpecific_types_dnn() throws Exception {
|
||||||
|
runTest("compiler/util-klib-abi/testData/content/specific_types_dnn.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("specific_types_dynamic.kt")
|
||||||
|
public void testSpecific_types_dynamic() throws Exception {
|
||||||
|
runTest("compiler/util-klib-abi/testData/content/specific_types_dynamic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("type_parameters.kt")
|
@TestMetadata("type_parameters.kt")
|
||||||
public void testType_parameters() throws Exception {
|
public void testType_parameters() throws Exception {
|
||||||
|
|||||||
+12
@@ -103,6 +103,18 @@ public class FirJsLibraryAbiReaderTestGenerated extends AbstractFirJsLibraryAbiR
|
|||||||
runTest("compiler/util-klib-abi/testData/content/root_package.kt");
|
runTest("compiler/util-klib-abi/testData/content/root_package.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("specific_types_dnn.kt")
|
||||||
|
public void testSpecific_types_dnn() throws Exception {
|
||||||
|
runTest("compiler/util-klib-abi/testData/content/specific_types_dnn.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("specific_types_dynamic.kt")
|
||||||
|
public void testSpecific_types_dynamic() throws Exception {
|
||||||
|
runTest("compiler/util-klib-abi/testData/content/specific_types_dynamic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("type_parameters.kt")
|
@TestMetadata("type_parameters.kt")
|
||||||
public void testType_parameters() throws Exception {
|
public void testType_parameters() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user