Switch position of parameters in type checking of state
GITHUB_BREAKING_CHANGES=n/a
@@ -190,7 +190,8 @@ final class ResolveExpressionTypesPass extends CompilerFilePass {
private static final SoyErrorKind TYPE_MISMATCH =
SoyErrorKind.of("Soy types ''{0}'' and ''{1}'' are not comparable.");
private static final SoyErrorKind TYPE_MISMATCH_STATE =
- SoyErrorKind.of("''{0}'' has type ''{1}'' which is not assignable to type ''{2}''.");
+ SoyErrorKind.of(
+ "The initializer for ''{0}'' has type ''{1}'' which is not assignable to type ''{2}''.");
private static final SoyErrorKind INCOMPATIBLE_ARITHMETIC_OP =
SoyErrorKind.of("Using arithmetic operators on Soy types ''{0}'' and ''{1}'' is illegal.");
private static final SoyErrorKind INCOMPATIBLE_ARITHMETIC_OP_UNARY =
@@ -233,8 +234,8 @@ final class ResolveExpressionTypesPass extends CompilerFilePass {
state.initialValue().getSourceLocation(),
TYPE_MISMATCH_STATE,
state.name(),
- state.type(),
- state.initialValue().getType());
+ state.initialValue().getType(),
+ state.type());
}
}
}
