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

Using aliases sorting is not always the same depending on the input order #1168

Closed
Araxor opened this issue Feb 9, 2024 · 0 comments · Fixed by #1173
Closed

Using aliases sorting is not always the same depending on the input order #1168

Araxor opened this issue Feb 9, 2024 · 0 comments · Fixed by #1173
Milestone

Comments

@Araxor
Copy link

Araxor commented Feb 9, 2024

Input 1:

using A = string;
using B = string;
using C = string;
using D = string;

Output 1:

using D = string;
using C = string;
using B = string;
using A = string;

Input 2:

using D = string;
using C = string;
using B = string;
using A = string;

Output 2:

using A = string;
using B = string;
using C = string;
using D = string;

Input 3:

using C = string;
using D = string;
using B = string;
using A = string;

Output 3:

using A = string;
using B = string;
using D = string;
using C = string;

Expected behavior:
All inputs should have the same output (output 2 in the examples above).

@belav belav added this to the 0.28.0 milestone Feb 11, 2024
belav added a commit that referenced this issue Feb 11, 2024
@belav belav mentioned this issue Feb 11, 2024
belav added a commit that referenced this issue Feb 17, 2024
* making sure alias's sort properly

closes #1168

* assume csharpier-repos is next to csharpier

* self code review
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

Successfully merging a pull request may close this issue.

2 participants