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

Indexer with expression body causes SA0102 (syntax error) #87

Open
akaranta opened this issue Nov 29, 2016 · 0 comments
Open

Indexer with expression body causes SA0102 (syntax error) #87

akaranta opened this issue Nov 29, 2016 · 0 comments

Comments

@akaranta
Copy link

Using C# 6 expression body syntax for indexer causes error SA0102

public int this[string key] => _valueUpdateCounts.ContainsKey(key) ? _valueUpdateCounts[key] : 0;

Error SA0102 : CSharp.CsParser : A syntax error has been discovered in file C:\XXX.cs on line 22.

Other C# 6 features seem to be working fine.

Using Visual-StyleCop version 4.7.59

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