Files
kotlin-fork/idea/testData/inspections/unusedSymbol/object/defaultObjectUsedInContainingClass.kt
T
2015-03-20 19:34:15 +03:00

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()
}