[TEST] Migrate AbstractDiagnosticsTestWithJsStdLib to new test runners

This commit is contained in:
Dmitriy Novozhilov
2020-12-14 16:16:46 +03:00
parent 1fe5148f0d
commit 71ffaa2d97
27 changed files with 419 additions and 167 deletions
@@ -6,21 +6,21 @@ package foo
open class NonExportedClass
@JsExport
class <!NON_EXPORTABLE_TYPE("super", "NonExportedClass")!>ExportedClass<!> : NonExportedClass()
class <!NON_EXPORTABLE_TYPE("super; NonExportedClass")!>ExportedClass<!> : NonExportedClass()
interface NonExportedInterface
@JsExport
class <!NON_EXPORTABLE_TYPE("super", "NonExportedInterface")!>ExportedClass2<!> : NonExportedInterface
class <!NON_EXPORTABLE_TYPE("super; NonExportedInterface")!>ExportedClass2<!> : NonExportedInterface
@JsExport
open class ExportedGenericClass<T>
@JsExport
class <!NON_EXPORTABLE_TYPE("super", "ExportedGenericClass<NonExportedClass>")!>ExportedClass3<!> : ExportedGenericClass<NonExportedClass>()
class <!NON_EXPORTABLE_TYPE("super; ExportedGenericClass<NonExportedClass>")!>ExportedClass3<!> : ExportedGenericClass<NonExportedClass>()
@JsExport
interface ExportedGenericInterface<T>
@JsExport
class <!NON_EXPORTABLE_TYPE("super", "ExportedGenericInterface<NonExportedClass>")!>ExportedClass4<!> : ExportedGenericInterface<NonExportedClass>
class <!NON_EXPORTABLE_TYPE("super; ExportedGenericInterface<NonExportedClass>")!>ExportedClass4<!> : ExportedGenericInterface<NonExportedClass>
@@ -7,30 +7,30 @@ package foo
class C
@JsExport
fun foo(<!NON_EXPORTABLE_TYPE("parameter", "C")!>x: C<!>) {
fun foo(<!NON_EXPORTABLE_TYPE("parameter; C")!>x: C<!>) {
}
<!NON_EXPORTABLE_TYPE("return", "C")!>@JsExport
<!NON_EXPORTABLE_TYPE("return; C")!>@JsExport
fun bar()<!> = C()
<!NON_EXPORTABLE_TYPE("property", "C")!>@JsExport
<!NON_EXPORTABLE_TYPE("property; C")!>@JsExport
val x: C<!> = C()
<!NON_EXPORTABLE_TYPE("property", "C")!>@JsExport
<!NON_EXPORTABLE_TYPE("property; C")!>@JsExport
var x2: C<!>
get() = C()
set(value) { }
@JsExport
class A(
<!NON_EXPORTABLE_TYPE("parameter", "C"), NON_EXPORTABLE_TYPE("property", "C")!>val x: C<!>,
<!NON_EXPORTABLE_TYPE("parameter", "C")!>y: C<!>
<!NON_EXPORTABLE_TYPE("property; C"), NON_EXPORTABLE_TYPE("parameter; C")!>val x: C<!>,
<!NON_EXPORTABLE_TYPE("parameter; C")!>y: C<!>
) {
<!NON_EXPORTABLE_TYPE("return", "C")!>fun foo(<!NON_EXPORTABLE_TYPE("parameter", "C")!>x: C<!>)<!> = x
<!NON_EXPORTABLE_TYPE("return; C")!>fun foo(<!NON_EXPORTABLE_TYPE("parameter; C")!>x: C<!>)<!> = x
<!NON_EXPORTABLE_TYPE("property", "C")!>val x2: C<!> = C()
<!NON_EXPORTABLE_TYPE("property; C")!>val x2: C<!> = C()
<!NON_EXPORTABLE_TYPE("property", "C")!>var x3: C<!>
<!NON_EXPORTABLE_TYPE("property; C")!>var x3: C<!>
get() = C()
set(value) { }
}
@@ -40,7 +40,7 @@ fun foo2() {
}
@JsExport
fun foo3(<!NON_EXPORTABLE_TYPE("parameter", "Unit")!>x: Unit<!>) {
fun foo3(<!NON_EXPORTABLE_TYPE("parameter; Unit")!>x: Unit<!>) {
}
@JsExport
@@ -48,9 +48,9 @@ fun foo4(x: () -> Unit) {
}
@JsExport
fun foo5(<!NON_EXPORTABLE_TYPE("parameter", "(Unit) -> Unit")!>x: (Unit) -> Unit<!>) {
fun foo5(<!NON_EXPORTABLE_TYPE("parameter; (Unit) -> Unit")!>x: (Unit) -> Unit<!>) {
}
@JsExport
fun foo6(x: (A) -> A) {
}
}
@@ -8,10 +8,10 @@ abstract class C
interface I
@JsExport
fun <<!NON_EXPORTABLE_TYPE("upper bound", "C")!>T : C<!>>foo() { }
fun <<!NON_EXPORTABLE_TYPE("upper bound; C")!>T : C<!>>foo() { }
@JsExport
class A<<!NON_EXPORTABLE_TYPE("upper bound", "C")!>T : C<!>, <!NON_EXPORTABLE_TYPE("upper bound", "I")!>S: I<!>>
class A<<!NON_EXPORTABLE_TYPE("upper bound; C")!>T : C<!>, <!NON_EXPORTABLE_TYPE("upper bound; I")!>S: I<!>>
@JsExport
interface I2<<!NON_EXPORTABLE_TYPE("upper bound", "C"), NON_EXPORTABLE_TYPE("upper bound", "I")!>T<!>> where T : C, T : I
interface I2<<!NON_EXPORTABLE_TYPE("upper bound; C"), NON_EXPORTABLE_TYPE("upper bound; I")!>T<!>> where T : C, T : I