K2: reproduce KT-57954 and reorganize tests around enum entries warnings
In particular, here we add FIR_DUMP to all enum entries tests with some deprecation diagnostics and the feature on, and remove all txt-files
This commit is contained in:
committed by
Space Team
parent
63e65a482c
commit
70899d492d
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// !LANGUAGE: +EnumEntries
|
||||
// WITH_STDLIB
|
||||
// FIR_DUMP
|
||||
|
||||
enum class E {
|
||||
;
|
||||
|
||||
val entries: Int = 0
|
||||
}
|
||||
|
||||
fun test() {
|
||||
E::<!DEPRECATED_ACCESS_TO_ENUM_ENTRY_PROPERTY_AS_REFERENCE!>entries<!>
|
||||
val ref = E::<!DEPRECATED_ACCESS_TO_ENUM_ENTRY_PROPERTY_AS_REFERENCE!>entries<!>
|
||||
val refType: (E) -> Int = E::entries
|
||||
val refTypeWithAnyExpectedType: Any = E::<!DEPRECATED_ACCESS_TO_ENUM_ENTRY_PROPERTY_AS_REFERENCE!>entries<!>
|
||||
}
|
||||
Reference in New Issue
Block a user