This commit is contained in:
Бондарев Иван 2018-09-16 11:54:21 +02:00
parent f97ac48411
commit fe1232eda4

View file

@ -1301,7 +1301,13 @@ namespace PascalABCCompiler.TreeConverter
if (no_search_in_extension_methods)
return find_operator(name, left, right, loc, false);
else
AddError(new OperatorCanNotBeAppliedToThisTypes(name, left, right, loc));
{
if (right.type is undefined_type)
AddError(right.location, "CAN_NOT_DEDUCE_TYPE_{0}", "");
else
AddError(new OperatorCanNotBeAppliedToThisTypes(name, left, right, loc));
}
}
}