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

GCop658 false alarm #290

Open
sungam3r opened this issue Feb 21, 2019 · 1 comment
Open

GCop658 false alarm #290

sungam3r opened this issue Feb 21, 2019 · 1 comment

Comments

@sungam3r
Copy link
Contributor

Before fix:

 public class NumberSizePageFilter
    {
        public int PageNumber { get; set; }
        public int PageSize { get; set; }
        public NumberSizePageFilter Next() => new NumberSizePageFilter { PageNumber = PageNumber + 1, PageSize = PageSize }; // GCop658	Use compound assignment.	
    }

After fix:

 public class NumberSizePageFilter
    {
        public int PageNumber { get; set; }
        public int PageSize { get; set; }
        public NumberSizePageFilter Next() => new NumberSizePageFilter { PageNumber += 1, PageSize = PageSize }; // CS0747	Invalid initializer member declarator
    }

which is obviously not compiled.

@sungam3r
Copy link
Contributor Author

Any progress on this?

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

1 participant