Stdlib rename: 'name' and 'ordinal' are now properties in Enum, same name functions are deprecated

This commit is contained in:
Mikhail Glukhikh
2015-10-12 17:52:55 +03:00
parent 78cfeb0d7d
commit f8a356747e
193 changed files with 522 additions and 454 deletions
@@ -1,8 +1,8 @@
enum class E {
ENTRY;
<!OVERRIDING_FINAL_MEMBER!>override<!> fun name(): String = "lol"
<!OVERRIDING_FINAL_MEMBER!>override<!> fun ordinal(): Int = 0
<!OVERRIDING_FINAL_MEMBER!>override<!> val name: String = "lol"
<!OVERRIDING_FINAL_MEMBER!>override<!> val ordinal: Int = 0
<!OVERRIDING_FINAL_MEMBER!>override<!> fun compareTo(other: E) = -1