USELESS_ELVIS_RIGHT_IS_NULL : build fix (add to different files in DiagnosticsTestGenerated), do not report if USELESS_ELVIS already exists
(cherry picked from commit c71b656)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
df86840515
commit
d08d8af407
@@ -30,7 +30,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 <!TYPE_MISMATCH!>t<!>
|
||||
}
|
||||
Reference in New Issue
Block a user