Do not suggest "redundant toInt() call" for comparison receiver

So #KT-23133 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-24 12:30:23 +03:00
committed by Mikhail Glukhikh
parent f91819ace7
commit 488e5e9f60
3 changed files with 41 additions and 17 deletions
@@ -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>
}