Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexer failes parsing generic types with default value without spacecing inbetween #314

Open
kvrabec opened this issue Oct 21, 2021 · 0 comments

Comments

@kvrabec
Copy link

kvrabec commented Oct 21, 2021

This bug appeared in function declaration code, while assigning default value to a generic type without spacing between closing angle bracket and equality sign

For example, the following code:
function doSomething(const var1 : integer; const myGenericType : GenericType<integer>=nil);

causes exception with the following error message:
Failed to make AST for unit '<unitName>'. Problems on line : '31', column : 142' 'Greater' expected found '>='

The problem is currently solved by adding the space inbetween, but former code is a valid Delphi code 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant