Clarify error message to indicate that goog.forwardDeclare() can be used as the RHS of a variable declaration, just like goog.require()
@@ -127,7 +127,8 @@ public final class ClosureCheckModule extends AbstractModuleCallback
DiagnosticType.disabled(
"JSC_REFERENCE_TO_FULLY_QUALIFIED_IMPORT_NAME",
"Reference to fully qualified import name ''{0}''."
- + " Imports in goog.module should use the return value of goog.require instead.");
+ + " Imports in goog.module should use the return value of"
+ + " goog.require / goog.forwardDeclare instead.");
public static final DiagnosticType REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME_INCLUDING_SHORT_NAME =
DiagnosticType.disabled(
@@ -139,7 +140,8 @@ public final class ClosureCheckModule extends AbstractModuleCallback
DiagnosticType.disabled(
"JSC_JSDOC_REFERENCE_TO_FULLY_QUALIFIED_IMPORT_NAME",
"Reference to fully qualified import name ''{0}'' in JSDoc."
- + " Imports in goog.module should use the return value of goog.require instead.");
+ + " Imports in goog.module should use the return value of"
+ + " goog.require / goog.forwardDeclare instead.");
public static final DiagnosticType
JSDOC_REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME_INCLUDING_SHORT_NAME =
