diagnostics

This commit is contained in:
Dmitry Jemerov
2011-06-29 13:33:39 +02:00
parent 9600afa1e0
commit f26d0b4af7
@@ -26,7 +26,7 @@ public class ErrorHandler {
@Override
public void typeMismatch(@NotNull JetExpression expression, @NotNull JetType expectedType, @NotNull JetType actualType) {
throw new IllegalStateException("Type mismatch: inferred type is " + actualType + " but " + expectedType + " was expected");
throw new IllegalStateException("Type mismatch at " + expression.getTextRange().getStartOffset() + ": inferred type is " + actualType + " but " + expectedType + " was expected");
}
@Override