Reverted explicitly specifying visibility modifier while override

This commit is contained in:
Svetlana Isakova
2012-04-18 18:55:03 +04:00
parent 8d6d292150
commit b5bf4a626c
31 changed files with 66 additions and 67 deletions
@@ -1,7 +1,7 @@
class C(x: Int, val y : Int) {
fun initChild(var x: Int) : java.lang.Object {
return object : java.lang.Object() {
public override fun toString(): String? {
override fun toString(): String? {
x = x + y
return "child" + x
}
@@ -3,7 +3,7 @@ package p
class C(val y : Int) {
val initChild = { ->
object : java.lang.Object() {
public override fun toString(): String {
override fun toString(): String {
return "child" + y
}
}