Do not propose to specify constructor invocation in diagnostics
#KT-17188 Fixed
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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 =================
|
||||
|
||||
|
||||
+1
-1
@@ -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 =================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user