Skip to content

Commit

Permalink
Workaround for GreaterEqual symbol in TypeSimple (fix RomanYankovsky#317
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Irame committed Oct 27, 2021
1 parent 69c370e commit 9e1ac5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/SimpleParser/SimpleParser.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5014,7 +5014,11 @@ procedure TmwSimplePasPar.TypeSimple;
begin
Expected(ptLower);
TypeArgs;
Expected(ptGreater);
// workaround for TSomeClass< T >= class(TObject)
if TokenID = ptGreaterEqual then
Lexer.RunPos := Lexer.RunPos - 1
else
Expected(ptGreater);
end;
end;

Expand Down

0 comments on commit 9e1ac5f

Please sign in to comment.