Wrong "USELESS_ELVIS" fixed

This commit is contained in:
Andrey Breslav
2014-08-21 07:35:25 +04:00
parent c3c72fc528
commit a3d9ff65aa
2 changed files with 3 additions and 1 deletions
@@ -326,6 +326,6 @@ public class CallCompleter(
//If a receiver type is not null, then this safe expression is useless, and we don't need to make the result type nullable.
val expressionType = trace[BindingContext.EXPRESSION_TYPE, expression.getReceiverExpression()]
return expressionType != null && expressionType.isNullable()
return expressionType != null && TypeUtils.isNullableType(expressionType)
}
}
@@ -1,3 +1,5 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION
// FILE: p/J.java
package p;