Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Eugene Pasynkov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Fixed in build
733
  • Submitted by   Ilya Ryzhenkov
    23 months ago (20 Feb 2008 01:57)
  • Updated by Ilya Ryzhenkov
    19 months ago (17 Jun 2008 18:59)
  • Jira: RSRP-58706
    (history, comments)

RSRP-58706

Errors shown on valid code with weird using() statement

0
ReSharperUsing.cs   (359 B)
Added by <no user>
08 Feb 2010
ResharperUsing..png   (31 KB)

This issue has been created from an NNTP article.
  • Newsgroup: jetbrains.resharper.community
  • From: Samuel Neff <no_reply@jetbrains.com>
  • Link: news://news.intellij.net/6944465.1203461668422.JavaMail.itn@is.intellij.net
  • Attachment[0]: ResharperUsing..png (31.2 KB)
  • Attachment[1]: ReSharperUsing.cs (359 bytes)

----

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

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments