Hack due to KT-678 was removed

This commit is contained in:
Mikhail Glukhikh
2016-08-15 19:01:24 +03:00
parent cbcef67d82
commit dbff2be6fa
@@ -1095,12 +1095,6 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
public boolean accept(@Nullable WritableSlice<?, ?> slice, Object key) {
// the type of the right (and sometimes left) expression isn't 'Any?' actually
if ((key == right || key == left) && slice == EXPRESSION_TYPE_INFO) return false;
// a hack due to KT-678
// without this line an smartcast is reported on the receiver (if it was previously checked for not-null)
// with not-null check the resolution result changes from 'fun Any?.equals' to 'equals' member
if (key == left && slice == SMARTCAST) return false;
return true;
}
}, true);