FIR checker: warn useless elvis
This commit is contained in:
committed by
TeamCityServer
parent
b2005302dc
commit
24d792fb49
@@ -31,7 +31,7 @@ fun baz(s: String?, r: String?): String {
|
||||
}
|
||||
|
||||
fun withNull(s: String?): String {
|
||||
val t = s ?: null
|
||||
val t = s <!USELESS_ELVIS_RIGHT_IS_NULL!>?: null<!>
|
||||
// Error: nullable
|
||||
return <!RETURN_TYPE_MISMATCH!>t<!>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user