[Mono-bugs] [Bug 342250] New: Parser Error when ?: is used inside of using statement

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 16 11:42:51 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=342250

           Summary: Parser Error when ?: is used inside of using statement
           Product: Mono: Compilers
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: kevin at kubasik.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


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


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list