Enum entries: add new tests with language feature ON & fix checker
This commit is contained in:
committed by
Space Team
parent
c534c54a1c
commit
41966a745e
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +EnumEntries
|
||||
// WITH_STDLIB
|
||||
|
||||
enum class E {
|
||||
<!DEPRECATED_DECLARATION_OF_ENUM_ENTRY!>entries,<!> Entries;
|
||||
|
||||
fun foo() {
|
||||
entries.ordinal
|
||||
E.entries.ordinal
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user