Fix CompareTo intrinsic behavior in no-dot syntax
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user