14 lines
330 B
Plaintext
Vendored
14 lines
330 B
Plaintext
Vendored
// "Create member function 'set'" "true"
|
|
class A {
|
|
operator fun get(s: String): Int = 1
|
|
|
|
operator 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"]++
|
|
}
|