FIR checker: warn useless elvis

This commit is contained in:
Jinseong Jeon
2021-04-19 10:12:20 -07:00
committed by TeamCityServer
parent b2005302dc
commit 24d792fb49
44 changed files with 171 additions and 109 deletions
@@ -4,7 +4,7 @@ fun a(): Int {
if (c == null ||
0 < c // FE 1.0: smart cast impossible, see KT-10240
) c = 0
return c ?: 0
return c <!USELESS_ELVIS!>?: 0<!>
}
var c: Int = 0