Improve LazyClassDescriptor#getDefaultObjectDescriptor()

To cover the case when default object's name is not unique (redeclaration)
(Calling getClassifier is wrong for this case)
This commit is contained in:
Pavel V. Talanov
2015-02-11 18:30:00 +03:00
parent b6b83a4683
commit 2d59791cf2
4 changed files with 95 additions and 1 deletions
@@ -0,0 +1,19 @@
package test
class A {
object <!REDECLARATION!>Default<!>
<!REDECLARATION!>class object<!>
}
class B {
class object <!REDECLARATION!>Named<!>
object <!REDECLARATION!>Named<!>
}
class C {
class <!REDECLARATION!>Named<!>
class object <!REDECLARATION!>Named<!>
}