KT-3491 Wrong (or not obvious) warning

#KT-3491 Fixed
This commit is contained in:
Nikolay Krasko
2013-04-09 14:30:22 +04:00
parent 7577177a06
commit ebd72df058
4 changed files with 34 additions and 6 deletions
@@ -4,6 +4,6 @@ fun foo() {
val x: Int? = null
bar(x ?: 0)
if (x != null) bar(x ?: x)
if (x != null) bar(<!USELESS_ELVIS!>x<!> ?: x)
bar(<!TYPE_MISMATCH!>x<!>)
}
}