Test: add jvm backend test for named class object
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class C() {
|
||||
class object Foo {
|
||||
fun create() = 3
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val c1 = C.Foo.create()
|
||||
val c2 = C.create()
|
||||
return if (c1 == 3 && c2 == 3) "OK" else "fail"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user