KT-11104 : quick fix "surround with null check"

This commit is contained in:
Mikhail Glukhikh
2016-06-01 17:57:45 +03:00
committed by Mikhail Glukhikh
parent 585dcbf1f3
commit 90342ea33b
26 changed files with 353 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Surround with null check" "true"
infix fun Int.op(arg: Int) = this
fun foo(arg: Int?) {
if (arg != null) {
arg op 42
}
}