Deprecated enum syntax removed: most compiler tests

This commit is contained in:
Mikhail Glukhikh
2015-08-07 16:28:20 +03:00
parent 90f94b47db
commit b2653ad1e9
78 changed files with 175 additions and 171 deletions
@@ -1,9 +1,9 @@
// KT-4423 Enum with function not compiled
enum class Sign(val str: String, val func: (x: Int, y: Int) -> Int){
plus: Sign("+", { x, y -> x + y })
plus("+", { x, y -> x + y }),
mult: Sign("*", { x, y -> x * y }) {
mult("*", { x, y -> x * y }) {
override fun toString() = "${func(4,5)}"
}
}