From 5a69231b92fb0a741789532bb33f67a3f722a16d Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Tue, 17 Apr 2012 02:11:58 +0400 Subject: [PATCH] Added IDE error message for TYPE_MISMATCH_IN_FOR_LOOP. --- .../jet/plugin/highlighter/IdeErrorMessages.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/IdeErrorMessages.java b/idea/src/org/jetbrains/jet/plugin/highlighter/IdeErrorMessages.java index f7507daff65..93a79b93e4d 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/IdeErrorMessages.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/IdeErrorMessages.java @@ -37,12 +37,19 @@ public class IdeErrorMessages { MAP.put(TYPE_MISMATCH, "Type mismatch.
Required:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); MAP.put(WRONG_SETTER_PARAMETER_TYPE, "Setter parameter type must be equal to the type of the property." + - "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); + "" + + "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); MAP.put(WRONG_GETTER_RETURN_TYPE, "Getter return type must be equal to the type of the property." + - "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); + "" + + "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); MAP.put(UPPER_BOUND_VIOLATED, "Type argument is not within its bounds." + - "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); + "" + + "
Expected:{0}
Found:{1}
", RENDER_TYPE, RENDER_TYPE); + + MAP.put(TYPE_MISMATCH_IN_FOR_LOOP, "Loop parameter type mismatch." + + "" + + "
Iterated values:{0}
Parameter:{1}
", RENDER_TYPE, RENDER_TYPE); MAP.setImmutable(); }