[K/JS] Deprecate external enum declarations

^KT-57254 Fixed
This commit is contained in:
Artem Kobzar
2023-03-10 12:55:43 +00:00
committed by Space Team
parent 6595275ba7
commit 633d840c88
18 changed files with 75 additions and 9 deletions
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: +ENUM_CLASS_IN_EXTERNAL_DECLARATION_WARNING
external annotation class <!WRONG_EXTERNAL_DECLARATION!>A(val x: Int)<!>
val x: Int
@@ -19,4 +20,8 @@ external class D {
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = definedExternally
}
external data class <!WRONG_EXTERNAL_DECLARATION!>E(val x: Int)<!>
external data class <!WRONG_EXTERNAL_DECLARATION!>E(val x: Int)<!>
external enum class <!ENUM_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>F<!> {
A, B, C
}