More information about context for assert

This commit is contained in:
Nikolay Krasko
2014-10-15 16:25:05 +04:00
parent 501bb398d4
commit 4cb276c47f
@@ -331,7 +331,8 @@ public class ClosureExpressionsTypingVisitor extends ExpressionTypingVisitor {
}
JetType returnedType = trace.get(EXPRESSION_TYPE, returnedExpression);
assert returnedType != null : "No type for returned expression: " + returnedExpression + ",\n" +
"the type should have been computed by getBlockReturnedType() above";
"the type should have been computed by getBlockReturnedType() above\n" +
JetPsiUtil.getElementTextWithContext(returnedExpression);
return returnedType;
}
});