Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/set/afterSetterForIncrement.kt
T

14 lines
305 B
Kotlin

// "Create function 'set'" "true"
class A {
fun get(s: String): Int = 1
fun set(s: String, value: Int) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun foo() {
var a = A()
a["1"]++
}