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,5 +1,5 @@
class Book(val name: String) : Comparable<Book> {
public override fun compareTo(other: Book) = name.compareTo(other.name)
override fun compareTo(other: Book) = name.compareTo(other.name)
}
fun box() = if(Book("239").compareTo(Book("932")) != 0) "OK" else "fail"