return type can be omitted when override
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user