Files
kotlin-fork/compiler/testData/codegen/regressions/kt887.jet
T
2012-01-03 12:34:12 +02:00

5 lines
192 B
Plaintext

class Book(val name: String) : Comparable<Book> {
override fun compareTo(other: Book) = name.compareTo(other.name)
}
fun box() = if(Book("239").compareTo(Book("932")) != 0) "OK" else "fail"