mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +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
|
||||
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(';');
|
||||
|
@ -3099,6 +3099,8 @@ end;
|
||||
procedure TTestTypeParser.TestRangeLowHigh;
|
||||
|
||||
begin
|
||||
TShortCut = Low(Word)..High(Word);
|
||||
|
||||
DoParseRangeSet('low(TRange)..high(TRange)','');
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user