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

Recursive generic definitions are not handled well #7

Open
persus opened this issue Apr 3, 2017 · 2 comments
Open

Recursive generic definitions are not handled well #7

persus opened this issue Apr 3, 2017 · 2 comments

Comments

@persus
Copy link
Collaborator

persus commented Apr 3, 2017

This does work properly:
TGenericC<T> = class(TNonGeneric, IGeneric<T>);
TGenericC<T> = class(TGeneric<T>, INonGeneric);
TGenericC<T> = class(TGeneric<T, R>, IGeneric<T, R>);

And this doesn't:
TGenericC<T> = class(TNonGeneric, IGeneric<IList<T>>);
TGenericC<T> = class(TGeneric<IList<T>>, INonGeneric);
TGenericC<T> = class(TGeneric<IList<T>, R>, IGeneric<R, IList<T>>)

@persus
Copy link
Collaborator Author

persus commented Apr 3, 2017

I have fixed it already, though. There is a pull request :)

persus pushed a commit to persus/SonarDelphi that referenced this issue Apr 3, 2017
@persus persus mentioned this issue Apr 3, 2017
SandroLuck added a commit that referenced this issue Apr 13, 2017
Fix for Issue #7 (tested by persus)
@SandroLuck
Copy link
Owner

thank you for providing this solution

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

2 participants