Quickfix for COMPARE_TO_TYPE_MISMATCH
This commit is contained in:
committed by
Andrey Breslav
parent
13022922af
commit
c281796e64
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user