Rewrite Java resolve to use static class scope instead of synthesized packages

#KT-4149 Fixed
 #KT-4839 Fixed
This commit is contained in:
Alexander Udalov
2014-09-03 14:42:03 +04:00
parent 75df4a9ad8
commit bcfb5f3b09
41 changed files with 217 additions and 419 deletions
@@ -6,6 +6,9 @@ public fun topLevelFunction(): kotlin.Unit
public open class JavaClass {
public constructor JavaClass()
public open fun instanceMethod(): kotlin.Unit
// Static members
public open fun staticMethod(): kotlin.Unit
}
public final class KotlinClass {
@@ -16,18 +19,13 @@ public trait SamInterface {
public abstract fun instanceMethod(): kotlin.Unit
}
package test.JavaClass {
public open fun staticMethod(): kotlin.Unit
}
package test.sub {
public open class JavaClassInSubpackage {
public constructor JavaClassInSubpackage()
public open fun instanceMethod(): kotlin.Unit
}
package test.sub.JavaClassInSubpackage {
// Static members
public open fun staticMethod(): kotlin.Unit
}
}