return type can be omitted when override

This commit is contained in:
Svetlana Isakova
2012-04-03 16:24:13 +04:00
parent 495287ea22
commit c47e3957a7
2 changed files with 5 additions and 1 deletions
@@ -38,3 +38,7 @@ class Q {
}
}
//check that 'toString' can be invoked without specifying 'public' and ': String'
class NewClass : java.util.ArrayList<Integer>() {
override fun toString() = "a"
}