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

CC0001 Is raised on multiple variable declarations. #537

Closed
thorgeirk11 opened this issue Oct 4, 2015 · 2 comments
Closed

CC0001 Is raised on multiple variable declarations. #537

thorgeirk11 opened this issue Oct 4, 2015 · 2 comments

Comments

@thorgeirk11
Copy link
Contributor

The following code raises CC0001

public void Foo()
{
    string foo = "", otherFoo = "";
}

However the code fix introduces a compile error:
Error CS0819 Implicitly-typed variables cannot have multiple declarators

@thorgeirk11 thorgeirk11 reopened this Oct 4, 2015
@thorgeirk11 thorgeirk11 changed the title CC0001 Incorrectly CC0001 Is raised on multiple variable declarations. Oct 4, 2015
@giggio giggio added this to the 1.0.0 milestone Oct 4, 2015
@giggio
Copy link
Member

giggio commented Oct 4, 2015

Bug confirmed.

Shiney added a commit to Shiney/code-cracker that referenced this issue Oct 11, 2015
carloscds added a commit that referenced this issue Oct 14, 2015
Fixed issue #537 by creating multiple variable declarations rather th…
@giggio
Copy link
Member

giggio commented Oct 16, 2015

Closed on #549.

@giggio giggio closed this as completed Oct 16, 2015
jwooley pushed a commit to jwooley/code-cracker that referenced this issue Nov 4, 2015
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