mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 23:30:20 +02:00
* More range type parsing errors
git-svn-id: trunk@34675 -
This commit is contained in:
parent
391966a414
commit
65ea20e9e0
@ -1057,7 +1057,7 @@ begin
|
|||||||
else
|
else
|
||||||
ParseExcSyntaxError;
|
ParseExcSyntaxError;
|
||||||
end
|
end
|
||||||
else if CurToken=tkDotDot then // Type A = A..B;
|
else if (CurToken in [tkBraceOpen,tkDotDot]) then // Type A = B..C;
|
||||||
K:=stkRange
|
K:=stkRange
|
||||||
else
|
else
|
||||||
ParseExcTokenError(';');
|
ParseExcTokenError(';');
|
||||||
|
@ -3099,6 +3099,8 @@ end;
|
|||||||
procedure TTestTypeParser.TestRangeLowHigh;
|
procedure TTestTypeParser.TestRangeLowHigh;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
TShortCut = Low(Word)..High(Word);
|
||||||
|
|
||||||
DoParseRangeSet('low(TRange)..high(TRange)','');
|
DoParseRangeSet('low(TRange)..high(TRange)','');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user