Fix wrong generated class name invoking inner objects from another module

This commit is contained in:
Natalia.Ukhorskaya
2013-08-05 16:20:25 +04:00
parent e3643fd222
commit 8e45bb7657
10 changed files with 77 additions and 5 deletions
@@ -0,0 +1,7 @@
package aaa
class A {
class O {
val s = "OK"
}
}
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
val str = aaa.A.O().s
if (str != "OK") {
throw Exception()
}
}
@@ -0,0 +1,7 @@
package aaa
class A {
enum class E {
A
}
}
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
val str = aaa.A().E.A
if (str.toString() != "A") {
throw Exception()
}
}
@@ -0,0 +1,9 @@
package aaa
class A {
class B {
class O {
val s = "OK"
}
}
}
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
val str = aaa.A.B.O().s
if (str != "OK") {
throw Exception()
}
}
@@ -0,0 +1,7 @@
package aaa
class A {
object O {
val s = "OK"
}
}
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
val str = aaa.A().O.s
if (str != "OK") {
throw Exception()
}
}