Do not suggest "redundant toInt() call" for comparison receiver
So #KT-23133 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f91819ace7
commit
488e5e9f60
+7
@@ -0,0 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun Boolean.toInt() = if (this) 1 else 0
|
||||
|
||||
fun test(x: Int, y: Int): Int {
|
||||
return (x > y).toInt()<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user