Bug 342250

Summary: Parser Error when ?: is used inside of using statement
Product: [Mono] Mono: Compilers Reporter: Kevin Kubasik <kevin>
Component: C#Assignee: Mono Bugs <mono-bugs>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Major    
Priority: P5 - None    
Version: SVN   
Target Milestone: ---   
Hardware: i686   
OS: Ubuntu   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kevin Kubasik 2007-11-16 16:42:51 UTC
As of the time of this filing, mcs in Subversion trunk will not compile statements where the comparison operator ?: is used inside of a using declaration.

using (dbLockCheck ? fileDatabase.LockRead () : null)
{			
//code
}

This was discovered in Mono.Addins AddinDatabase.cs line 276.

Subversion Link:
http://anonsvn.mono-project.com/viewcvs/trunk/monodevelop/contrib/Mono.Addins/src/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs?view=markup
Comment 1 Marek Safar 2007-11-16 16:54:01 UTC

*** This bug has been marked as a duplicate of bug 335946 ***