62e252ec26
#KT-17378 Fixed
10 lines
238 B
Kotlin
Vendored
10 lines
238 B
Kotlin
Vendored
class Declaration {
|
|
operator fun <caret>get(p: Int) = p
|
|
}
|
|
|
|
fun call() {
|
|
val declaration = Declaration()
|
|
val vg1 = declaration.get(4)
|
|
val vg2 = declaration[42].let { it + 1 }
|
|
val vg3 = Declaration()[42].let { it + 1 }
|
|
} |