[JS IR] Add test on frontend check with enum exportness

^KT-49754 fixed
This commit is contained in:
Ilya Goncharov
2021-11-17 20:12:35 +03:00
committed by Space
parent a46c4cf0a5
commit 6f3985be47
2 changed files with 25 additions and 0 deletions
@@ -24,3 +24,9 @@ interface ExportedGenericInterface<T>
@JsExport
class <!NON_EXPORTABLE_TYPE("super; ExportedGenericInterface<NonExportedClass>")!>ExportedClass4<!> : ExportedGenericInterface<NonExportedClass>
@JsExport
enum class <!NON_EXPORTABLE_TYPE("super; NonExportedInterface")!>ExportedEnum<!> : NonExportedInterface {
EXPORTED_ENUM_1,
EXPORTED_ENUM_2
}
@@ -30,6 +30,25 @@ package foo {
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
@kotlin.js.JsExport public final enum class ExportedEnum : kotlin.Enum<foo.ExportedEnum>, foo.NonExportedInterface {
enum entry EXPORTED_ENUM_1
enum entry EXPORTED_ENUM_2
private constructor ExportedEnum()
public final override /*1*/ /*fake_override*/ val name: kotlin.String
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: foo.ExportedEnum): kotlin.Int
public final override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public final override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): foo.ExportedEnum
public final /*synthesized*/ fun values(): kotlin.Array<foo.ExportedEnum>
}
@kotlin.js.JsExport public open class ExportedGenericClass</*0*/ T> {
public constructor ExportedGenericClass</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean