Errors shown on valid code with weird using() statement

I have a conditional using statement in my code. It's a little weird but it works and ReSharper 2.x and 3.x understood it fine. Basic construct is:

using (variable ? DisposableGetter : null) { ... }

and in R#2/3 this worked fine and I got intellisense as expected everywhere within that statement. With R# 4 it gives me three errors and no intellisense.

on "variable": Type name expected, but parameter name found

on "DisposableGetter": You must provide an initializer in a 'using' statement declaration

closing paren: Unexpected token


Full example attached. This is pretty close to my real code.

Thanks,

Sam



Attachment(s):
ResharperUsing..png
ReSharperUsing.cs
2 comments
Comment actions Permalink

Hello,

We appreciate your feedback. It looks like you are referring to early builds
of ReSharper 4. Please use jetbrains.resharper.eap newsgroup, or appropriate
web forum to discuss issues of pre-release versions. Thanks.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-58706.

You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker

Best regards,
- Development Team.


0
Comment actions Permalink

sorry, I see I posted in the wrong forum. I'll pay more attention next time.

Thanks!

Sam

0

Please sign in to leave a comment.