mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
152 B
Kotlin
Vendored
11 lines
152 B
Kotlin
Vendored
// "Add 'operator' modifier" "true"
|
|
open class Foo {
|
|
fun get(idx: Int): Any = 5
|
|
}
|
|
|
|
object Bar : Foo()
|
|
|
|
fun test(): Any {
|
|
return Bar<caret>[5]
|
|
}
|