Remove useless casts after fixing subtyping for star projections

This commit is contained in:
Andrey Breslav
2015-03-12 14:13:12 +03:00
parent b8674beac0
commit 2f39cb6243
4 changed files with 9 additions and 10 deletions
@@ -276,8 +276,7 @@ public class JavaNullabilityWarningsChecker : AdditionalTypeChecker {
}
}
else {
// TODO: Compiler bug
doIfNotNull(dataFlowValue, c as ResolutionContext<*>) {
doIfNotNull(dataFlowValue, c) {
c.trace.report(Errors.UNNECESSARY_SAFE_CALL.on(c.call.getCallOperationNode().getPsi(), receiverArgument.getType()))
}
}