No members from anonymous objects etc
This commit is contained in:
+26
-2
@@ -2,13 +2,13 @@ package test
|
||||
|
||||
object KotlinObject {
|
||||
fun funFromObject() { }
|
||||
private fun privateFun(){}
|
||||
private fun funPrivate(){}
|
||||
}
|
||||
|
||||
class KotlinClass {
|
||||
companion object SomeName {
|
||||
fun funFromCompanionObject() { }
|
||||
private fun privateFun(){}
|
||||
private fun funPrivate(){}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,28 @@ 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(){}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user