Minor, delete Object from some test data

This commit is contained in:
Alexander Udalov
2014-07-25 16:44:31 +04:00
parent a5321ba9f0
commit 98ffdb3e32
7 changed files with 32 additions and 33 deletions
@@ -1,17 +1,17 @@
package p
class C(val y : Int) {
val initChild = { ->
object : java.lang.Object() {
override fun toString(): String {
return "child" + y
}
class C(val y: Int) {
val initChild = { ->
object {
override fun toString(): String {
return "child" + y
}
}
}
}
}
fun box(): String {
val c = C(3).initChild
val x = c().toString()
return if(x == "child3") "OK" else x
val c = C(3).initChild
val x = c().toString()
return if (x == "child3") "OK" else x
}