Files
kotlin-fork/idea/testData/inspectionsLocal/unusedReceiverParameter/companion.kt
T
2017-10-30 15:07:39 +03:00

16 lines
220 B
Kotlin
Vendored

// PROBLEM: none
class Test(val test: Int) {
companion object
fun foo() = test
}
// Used
operator fun Test.<caret>Companion.invoke() = Test(1)
fun main(args: Array<String>) {
val x = Test()
x.foo()
}