bug fix issue #87

This commit is contained in:
Бондарев Иван 2016-02-21 19:31:49 +01:00
parent bd4d6b6f28
commit 7da241728d

View file

@ -16316,7 +16316,7 @@ namespace PascalABCCompiler.TreeConverter
if (!FindIEnumerableElementType(_foreach_stmt, in_what.type, ref elem_type))
//if (!IsGetEnumerator(in_what.type, ref elem_type))
AddError(in_what.location, "CAN_NOT_EXECUTE_FOREACH_BY_EXPR_OF_TYPE_{0}", in_what.type);
AddError(in_what.location, "CAN_NOT_EXECUTE_FOREACH_BY_EXPR_OF_TYPE_{0}", in_what.type.name);
if (_foreach_stmt.type_name == null)
{