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:
Mikhail Glukhikh
2016-08-23 16:25:04 +03:00
committed by Mikhail Glukhikh
parent df86840515
commit d08d8af407
4 changed files with 7 additions and 7 deletions
@@ -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<!>
}