Do not propose to specify constructor invocation in diagnostics

#KT-17188 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-06-22 01:51:55 +03:00
parent 0f350f5db8
commit 0579604653
5 changed files with 5 additions and 5 deletions
@@ -402,7 +402,7 @@ public class DefaultErrorMessages {
MAP.put(WRONG_SETTER_PARAMETER_TYPE, "Setter parameter type must be equal to the type of the property, i.e. ''{0}''", RENDER_TYPE, RENDER_TYPE);
MAP.put(WRONG_GETTER_RETURN_TYPE, "Getter return type must be equal to the type of the property, i.e. ''{0}''", RENDER_TYPE, RENDER_TYPE);
MAP.put(WRONG_SETTER_RETURN_TYPE, "Setter return type must be Unit");
MAP.put(NO_COMPANION_OBJECT, "Please specify constructor invocation; classifier ''{0}'' does not have a companion object", NAME);
MAP.put(NO_COMPANION_OBJECT, "Classifier ''{0}'' does not have a companion object, and thus must be initialized here", NAME);
MAP.put(TYPE_PARAMETER_IS_NOT_AN_EXPRESSION, "Type parameter ''{0}'' is not an expression", NAME);
MAP.put(TYPE_PARAMETER_ON_LHS_OF_DOT, "Type parameter ''{0}'' cannot have or inherit a companion object, so it cannot be on the left hand side of dot", NAME);
MAP.put(NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, "Nested {0} accessed via instance reference", RENDER_CLASS_OR_OBJECT_NAME);
@@ -1,5 +1,5 @@
// "Import" "true"
// ERROR: Please specify constructor invocation; classifier 'ArrayList' does not have a companion object
// ERROR: Classifier 'ArrayList' does not have a companion object, and thus must be initialized here
// KT-4000
@@ -1,5 +1,5 @@
// "Import" "true"
// ERROR: Please specify constructor invocation; classifier 'ArrayList' does not have a companion object
// ERROR: Classifier 'ArrayList' does not have a companion object, and thus must be initialized here
// KT-4000
@@ -32,7 +32,7 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Unresolved reference: Companion
Please specify constructor invocation; classifier 'A' does not have a companion object
Classifier 'A' does not have a companion object, and thus must be initialized here
================ Step #2 =================
@@ -37,7 +37,7 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Unresolved reference: Companion
Please specify constructor invocation; classifier 'A' does not have a companion object
Classifier 'A' does not have a companion object, and thus must be initialized here
================ Step #2 =================