mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
13 lines
300 B
Plaintext
Vendored
13 lines
300 B
Plaintext
Vendored
// "Create member function 'A.set'" "true"
|
|
class A {
|
|
operator fun get(s: String): Int = 1
|
|
operator fun set(s: String, value: Int) {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
|
|
fun foo() {
|
|
var a = A()
|
|
a["1"]++
|
|
}
|