Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/expresssions/qualifierPriority.kt
T
2020-03-19 09:51:01 +03:00

44 lines
521 B
Kotlin
Vendored

class A {
object B {
object C {
}
}
companion object {
val B = ""
}
}
val ab = A.B // property
val abc = A.B.C // object
object D {
class E {
object F {
}
}
}
val D.E get() = ""
val def = D.E.F // object
val de = D.E // extension
enum class G {
H;
fun foo() {
values()
}
companion object {
val H = ""
fun values(): Int = 42
}
}
val gh = G.H // companion property
val gv = G.values() // static function