Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/invokePriorityComplex.kt
T
2020-04-21 09:52:52 +03:00

25 lines
508 B
Kotlin
Vendored

class AHolder(val a: Int)
class E {
object foo { // (1)
val a: Int = 42
}
companion object { // (2)
val foo: AHolder = AHolder(52)
}
}
class EE {
object foo {} // (1)
companion object { // (2)
val foo: AHolder = AHolder(52)
}
}
fun main() {
E.foo.a // (1) in old FE and FIR
E.foo // (2) !!! in old FE, (1) in FIR
with(E.foo) {
a // (2) in old FE, (1) in FIR
}
EE.foo.<!UNRESOLVED_REFERENCE!>a<!> // (1) !!! in old FE and FIR
}