* More range type parsing errors

git-svn-id: trunk@34675 -
This commit is contained in:
michael 2016-10-08 18:22:35 +00:00
parent 391966a414
commit 65ea20e9e0
2 changed files with 3 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ begin
else
ParseExcSyntaxError;
end
else if CurToken=tkDotDot then // Type A = A..B;
else if (CurToken in [tkBraceOpen,tkDotDot]) then // Type A = B..C;
K:=stkRange
else
ParseExcTokenError(';');

View File

@ -3099,6 +3099,8 @@ end;
procedure TTestTypeParser.TestRangeLowHigh;
begin
TShortCut = Low(Word)..High(Word);
DoParseRangeSet('low(TRange)..high(TRange)','');
end;