Fix callable reference to constructor of nested class in object

#KT-15951 Fixed
This commit is contained in:
Alexander Udalov
2017-02-02 20:16:56 +03:00
parent ca1ed850b8
commit 478352b7e7
4 changed files with 78 additions and 0 deletions
@@ -0,0 +1,21 @@
// KT-15951 Callable reference to class constructor from object is not resolved
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<!>
<!UNUSED_EXPRESSION!>Outer::<!UNRESOLVED_REFERENCE!>Wrapper<!><!>
(Outer)::<!UNRESOLVED_REFERENCE!>Wrapper<!>
}