FIR checker: warn useless elvis
This commit is contained in:
committed by
TeamCityServer
parent
b2005302dc
commit
24d792fb49
@@ -4,6 +4,6 @@ fun foo() {
|
||||
val x: Int? = null
|
||||
|
||||
bar(x ?: 0)
|
||||
if (x != null) bar(x ?: x)
|
||||
if (x != null) bar(x <!USELESS_ELVIS!>?: x<!>)
|
||||
bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user