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

Upgrading from version 4.1.1 to 5.2.0 broke AutoConstructor on subtypes #106

Closed
jothompson-prismhr opened this issue Mar 1, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jothompson-prismhr
Copy link

jothompson-prismhr commented Mar 1, 2024

This style of usage worked in version 4.1.1 but now causes the ACONS02 error on the SubClass and fails to build when it used to work.

public interface IDependency
{
}

[AutoConstructor]
public partial class ParentClass
{
    private IDependency Dependency { get; }
}

[AutoConstructor]
public partial class SubClass : ParentClass
{
}
@k94ll13nn3
Copy link
Owner

k94ll13nn3 commented Mar 1, 2024

Hello, I can't reproduce this issue with version 5.2.0, both constructors are generated.
Did you reproduce the issue with the code you provided ?

image

@jothompson-prismhr
Copy link
Author

Just tried with the code I provided. It works if everything is in the same project, but fails if SubClass is in a different project.
image

@k94ll13nn3
Copy link
Owner

Thanks, I will take a loot at it tonight.

@k94ll13nn3
Copy link
Owner

Thanks for the report, fixed in 5.2.1.

@k94ll13nn3 k94ll13nn3 added the bug Something isn't working label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants