浏览代码

* allow nested array constructors inside normal code blocks (body & except)

git-svn-id: trunk@36102 -
svenbarth 8 年之前
父节点
当前提交
6d512ddac7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/pexpr.pas

+ 1 - 1
compiler/pexpr.pas

@@ -3290,7 +3290,7 @@ implementation
              allow_array_constructor:=old_allow_array_constructor;
              allow_array_constructor:=old_allow_array_constructor;
            { there could be more elements }
            { there could be more elements }
            until not try_to_consume(_COMMA);
            until not try_to_consume(_COMMA);
-           buildp.allow_array_constructor:=allow_array_constructor;
+           buildp.allow_array_constructor:=block_type in [bt_body,bt_except];
            factor_read_set:=buildp;
            factor_read_set:=buildp;
          end;
          end;