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

Builder internal class constructor rewrite issue [Workaround] #142

Open
builder-main opened this issue Oct 16, 2024 · 0 comments
Open

Builder internal class constructor rewrite issue [Workaround] #142

builder-main opened this issue Oct 16, 2024 · 0 comments

Comments

@builder-main
Copy link

builder-main commented Oct 16, 2024

Current Workaround

Thanks to new c# syntax rewrites nicely as type can be omited.

public class Ghost{
        public Ghost MyBuilderFunc()
        {
            return new /*Remove Class name*/(/*params*/);
        }
}

Issue

public class Ghost{
        public Ghost MyBuilderFunc()
        {
            return new Ghost(/*params*/);
        }
}

rewrites to and fail as class mismatch

public class Ghost__Patched{
        public Ghost__Patched MyBuilderFunc()
        {
            return new Ghost(/*params*/);
        }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants