Files
kotlin-fork/idea/idea-completion/testData/basic/multifile/ObjectMembers/ObjectMembers.dependency.kt
T
2015-11-09 15:37:46 +03:00

44 lines
662 B
Kotlin
Vendored

package test
object KotlinObject {
fun funFromObject() { }
private fun funPrivate(){}
}
class KotlinClass {
companion object SomeName {
fun funFromCompanionObject() { }
private fun funPrivate(){}
}
}
class AnotherKotlinClass {
private companion object {
fun funFromPrivateCompanionObject() { }
}
object Nested {
fun fromNested(){}
}
}
interface I {
fun fromInterface()
}
object DefaultI : I {
override fun fromInterface() {
}
}
fun foo() {
val o = object : Runnable {
override fun run() {
fromAnonymous()
}
fun fromAnonymous(){}
}
}