edd51908ec
#KT-7021 fixed
22 lines
283 B
Kotlin
22 lines
283 B
Kotlin
class A {
|
|
init {
|
|
foo()
|
|
v + v
|
|
|
|
v[v] // using companion object function by convention
|
|
}
|
|
|
|
companion object {
|
|
fun foo() {
|
|
}
|
|
|
|
val v = 42
|
|
|
|
fun Int.get(a: Int) = this + a
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
A()
|
|
}
|