Files
Alexey Sedunov df21078b74 Intentions: function <-> property conversion
GitOrigin-RevId: 6322c8ca71bde1db915700463701a3536ece8da3
2015-02-05 23:12:38 +03:00

8 lines
135 B
Kotlin

// IS_APPLICABLE: false
class A(val n: Int) {
fun <caret>foo(k: Int): Boolean = n - k > 1
}
fun test() {
val t = A(1).foo(2)
}