Move some DiagnosticType related to for/of and template literals into
COMPATIBLE_DIAGNOSTICS.
@@ -345,6 +345,8 @@ final class NewTypeInference implements CompilerPass {
REFLECT_CONSTRUCTOR_EXPECTED,
CONSTRUCTOR_NOT_CALLABLE,
FORIN_EXPECTS_STRING_KEY,
+ FOROF_EXPECTS_ITERABLE,
+ MISTYPED_FOROF_ELEMENT_TYPE,
GLOBAL_THIS,
GOOG_BIND_EXPECTS_FUNCTION,
ILLEGAL_OBJLIT_KEY,
@@ -353,6 +355,8 @@ final class NewTypeInference implements CompilerPass {
IN_USED_WITH_STRUCT,
INEXISTENT_PROPERTY,
INVALID_ARGUMENT_TYPE,
+ TEMPLATE_ARGUMENT_MISMATCH,
+ TEMPLATE_ARGUMENT_MISSING,
INVALID_CAST,
INVALID_INDEX_TYPE,
INVALID_OBJLIT_PROPERTY_TYPE,
@@ -377,14 +381,10 @@ final class NewTypeInference implements CompilerPass {
BOTTOM_PROP,
CROSS_SCOPE_GOTCHA,
FORIN_EXPECTS_OBJECT,
- FOROF_EXPECTS_ITERABLE,
- MISTYPED_FOROF_ELEMENT_TYPE,
INCOMPATIBLE_STRICT_COMPARISON,
INVALID_INFERRED_RETURN_TYPE,
INVALID_OPERAND_TYPE,
INVALID_THIS_TYPE_IN_BIND,
- TEMPLATE_ARGUMENT_MISMATCH,
- TEMPLATE_ARGUMENT_MISSING,
NOT_UNIQUE_INSTANTIATION,
PROPERTY_ACCESS_ON_NONOBJECT,
UNKNOWN_NAMESPACE_PROPERTY);
