Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/constructorOfNestedClassInObject.kt
T
Nikolay Lunyak 425d5e808b [FIR] Link some tests with issues
Just in case.

^KT-59874
2023-11-14 15:19:33 +00:00

23 lines
449 B
Kotlin
Vendored

// KT-15951 Callable reference to class constructor from object is not resolved
// KT-63069
object A {
class Wrapper
}
class Outer {
companion object {
class Wrapper
}
}
fun test() {
A::Wrapper
(A)::<!UNRESOLVED_REFERENCE!>Wrapper<!>
Outer.Companion::Wrapper
(Outer.Companion)::<!UNRESOLVED_REFERENCE!>Wrapper<!>
Outer::<!UNRESOLVED_REFERENCE!>Wrapper<!>
(Outer)::<!UNRESOLVED_REFERENCE!>Wrapper<!>
}