Enum.values: deprecation (warning) --> deprecation (error)

This commit is contained in:
Mikhail Glukhikh
2015-12-09 18:43:27 +03:00
parent 521b216602
commit c8b50eec1e
186 changed files with 238 additions and 215 deletions
@@ -1,7 +1,7 @@
enum class Variants {
O, K;
companion object {
val valueStr = values[0].name + Variants.values[1].name
val valueStr = values()[0].name + Variants.values()[1].name
}
}