/* type check/compare var and initializer */
if (!_slang_assignment_compatible(A, oper, initializer)) {
- slang_info_log_error(A->log, "illegal types in assignment");
+ slang_info_log_error(A->log, "incompatible types in assignment");
return NULL;
}
if (!_slang_assignment_compatible(A,
&oper->children[0],
&oper->children[1])) {
- slang_info_log_error(A->log, "illegal types in assignment");
+ slang_info_log_error(A->log, "incompatible types in assignment");
return NULL;
}
t0.spec.type != SLANG_SPEC_FLOAT) ||
(t1.spec.type != SLANG_SPEC_INT &&
t1.spec.type != SLANG_SPEC_FLOAT)) {
- slang_info_log_error(A->log, "Illegal type(s) for inequality operator");
+ slang_info_log_error(A->log, "Incompatible type(s) for inequality operator");
return NULL;
}
}