Ignore:
Timestamp:
Nov 9, 2010, 8:10:12 AM (14 years ago)
Author:
george
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Analyze/UAnalyzerPascal.pas

    r17 r18  
    11981198      UseName := NextToken;
    11991199      if NextTokenType = ttIdentifier then begin
    1200         UseType := TypeList.Parent.Types.Search(UseName);
     1200        TTypeArray(Result).IndexType := TypeList.Parent.Types.Search(UseName);
    12011201        if not Assigned(TTypeArray(Result).IndexType) then
    12021202          ErrorMessage(SUndefinedType, [UseName], -1) else
     
    12041204      end else
    12051205      if NextTokenType = ttConstantNumber then begin
    1206         UseType := ParseTypeSubRange(TypeList, Name);
    1207         if not Assigned(UseType) then begin
     1206        TTypeArray(Result).IndexType := ParseTypeSubRange(TypeList, Name);
     1207        if not Assigned(TTypeArray(Result).IndexType) then begin
    12081208          ErrorMessage(SInvalidConstruction, [], -1);
    12091209        end;
Note: See TracChangeset for help on using the changeset viewer.