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

SA1110 (OpeningParenthesisMustBeOnDeclarationLine) mis-fires for generic methods #728

Closed
AArnott opened this issue Apr 27, 2015 · 5 comments · Fixed by #742
Closed

SA1110 (OpeningParenthesisMustBeOnDeclarationLine) mis-fires for generic methods #728

AArnott opened this issue Apr 27, 2015 · 5 comments · Fixed by #742
Assignees
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented Apr 27, 2015

The SA1110 fires claiming that the opening parenthesis must be on the declaration line, referring to the very first line in the sample below.

return new ExportLifetimeContext<object>(
    tcs.Task, // can be anything really.
    () => tcs.TrySetResult(null));

Obviously, it is on the declaration line.

@sharwell
Copy link
Member

@macpak Would you like this one?

@macpak
Copy link
Contributor

macpak commented Apr 27, 2015

Yes.

@sharwell sharwell changed the title SA1110 mis-fires for generic methods SA1110 (OpeningParenthesisMustBeOnDeclarationLine) mis-fires for generic methods May 3, 2015
@tommymonk
Copy link

I'm seeing this issue occur in 1.0.0-beta002 with the generic call in this example;

int productId = _client.Cypher
                       .Match("p: Product")
                       .Return<int>("p.Id")
                       .Results
                       .SingleOrDefault();

@sharwell
Copy link
Member

@tommymonk Thanks for taking the time to follow up on this issue. Do you mind opening a new issue with your example?

@tommymonk
Copy link

Thanks, See: #1079

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.

4 participants