From 24bc1fe1b46deb808a669c698d5aa864966c01b8 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Thu, 18 Nov 2021 15:36:07 +0300 Subject: [PATCH] [JS IR] Add test with extending exported interface --- .../testsWithJsStdLib/export/extendingNonExportedType.kt | 2 +- .../testsWithJsStdLib/export/extendingNonExportedType.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt b/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt index b0624dbe8f3..214a37e01c1 100644 --- a/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt +++ b/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt @@ -26,7 +26,7 @@ interface ExportedGenericInterface class ")!>ExportedClass4 : ExportedGenericInterface @JsExport -enum class ExportedEnum : NonExportedInterface { +enum class ExportedEnum : ExportedGenericInterface, NonExportedInterface { EXPORTED_ENUM_1, EXPORTED_ENUM_2 } \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.txt b/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.txt index af9e81567f5..d108a3b03db 100644 --- a/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.txt +++ b/compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.txt @@ -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.NonExportedInterface { + @kotlin.js.JsExport public final enum class ExportedEnum : kotlin.Enum, foo.ExportedGenericInterface, 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