Skip to content

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

@kvrabec

Description

@kvrabec

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 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions