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

RCS1213 FP for primary constructors #1138

Closed
hankovich opened this issue Jul 27, 2023 · 2 comments · Fixed by #1254
Closed

RCS1213 FP for primary constructors #1138

hankovich opened this issue Jul 27, 2023 · 2 comments · Fixed by #1254

Comments

@hankovich
Copy link

Product and Version Used: latest

Steps to Reproduce:

class MyAttribute : Attribute
{
    public MyAttribute(string s)
    {
    }
}

class Class([My(Class.Const)] int i) // <- use Const
{
    private const string Const = "const"; // <- remove unused const declaration
}
@josefpihrt
Copy link
Collaborator

This feature is currently in preview. Let's wait when it's official.

@gtbuchanan
Copy link

It's official now.

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

Successfully merging a pull request may close this issue.

3 participants