object X {
def f() = 0
}
Adding the return type result in
object X {
def f: Int = 0
}
The parentheses are removed.
Leave a comment
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|