Skip to content

Grammar does not parse types containing types #462

Description

@Tostis

Prerequisites

  • This bug is in SonarDelphi, not SonarQube or my Delphi code.
  • This bug has not already been reported.

SonarDelphi version

1.21

Delphi version

13

SonarQube version

No response

Issue description

Grammar cannot parse types delclared inside types.

type TMyOuterClass=  class

	type TMyInnerClass= class
	end;
end;

Steps to reproduce

Try to parse this unit.

unit MyUnit;

interface

type TMyOuterClass=  class

	type TMyInnerClass= class
	end;
end;


implementation

end.

Minimal Delphi code exhibiting the issue

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions