Fix CompareTo intrinsic behavior in no-dot syntax

This commit is contained in:
Alexander Udalov
2013-01-22 19:28:06 +04:00
parent 44dcdde513
commit ab730b7dd5
5 changed files with 43 additions and 1 deletions
@@ -0,0 +1,7 @@
fun box(): String {
return justPrint(9 compareTo 4)
}
fun justPrint(value: Int): String {
return if (value > 0) "OK" else "Fail $value"
}