[JS IR] Add test with extending exported interface

This commit is contained in:
Ilya Goncharov
2021-11-18 15:36:07 +03:00
committed by Space
parent 6f3985be47
commit 24bc1fe1b4
2 changed files with 5 additions and 5 deletions
@@ -26,7 +26,7 @@ interface ExportedGenericInterface<T>
class <!NON_EXPORTABLE_TYPE("super; ExportedGenericInterface<NonExportedClass>")!>ExportedClass4<!> : ExportedGenericInterface<NonExportedClass>
@JsExport
enum class <!NON_EXPORTABLE_TYPE("super; NonExportedInterface")!>ExportedEnum<!> : NonExportedInterface {
enum class <!NON_EXPORTABLE_TYPE("super; NonExportedInterface")!>ExportedEnum<!> : ExportedGenericInterface<Any>, NonExportedInterface {
EXPORTED_ENUM_1,
EXPORTED_ENUM_2
}
@@ -30,7 +30,7 @@ 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 {
@kotlin.js.JsExport public final enum class ExportedEnum : kotlin.Enum<foo.ExportedEnum>, foo.ExportedGenericInterface<kotlin.Any>, foo.NonExportedInterface {
enum entry EXPORTED_ENUM_1
enum entry EXPORTED_ENUM_2
@@ -40,9 +40,9 @@ package foo {
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
public final override /*3*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public final override /*3*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*3*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): foo.ExportedEnum