Quickfix for COMPARE_TO_TYPE_MISMATCH

This commit is contained in:
Wojciech Lopata
2013-03-16 14:08:33 +01:00
committed by Andrey Breslav
parent 13022922af
commit c281796e64
5 changed files with 39 additions and 0 deletions
@@ -0,0 +1,7 @@
// "Change 'A.compareTo' function return type to 'Int'" "true"
trait A {
fun compareTo(other: Any): Int
}
fun foo(x: A) {
if (x <<caret> 0) {}
}
@@ -0,0 +1,7 @@
// "Change 'A.compareTo' function return type to 'Int'" "true"
trait A {
fun compareTo(other: Any): String
}
fun foo(x: A) {
if (x <<caret> 0) {}
}