assert added

This commit is contained in:
Svetlana Isakova
2013-08-08 17:38:26 +04:00
parent 7a757d2a51
commit ead5219001
@@ -79,7 +79,9 @@ public class ExpressionTypingUtils {
@NotNull
protected static ExpressionReceiver safeGetExpressionReceiver(@NotNull ExpressionTypingFacade facade, @NotNull JetExpression expression, ExpressionTypingContext context) {
return new ExpressionReceiver(expression, facade.safeGetTypeInfo(expression, context).getType());
JetType type = facade.safeGetTypeInfo(expression, context).getType();
assert type != null : "safeGetTypeInfo should return @NotNull type";
return new ExpressionReceiver(expression, type);
}
@NotNull