[Mono-bugs] [Bug 478101] New: Missing error CS0136 for same variable in switch statement cases
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Fri Feb 20 09:33:38 EST 2009
    
    
  
https://bugzilla.novell.com/show_bug.cgi?id=478101
           Summary: Missing error CS0136 for same variable in switch
                    statement cases
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: joncham at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
Created an attachment (id=274298)
 --> (https://bugzilla.novell.com/attachment.cgi?id=274298)
Testcase
Description of Problem:
gmcs does not give an error on the attached test case while csc does.
Steps to reproduce the problem:
1. Try and compile attached test.cs: gmcs test.cs
2. 
Actual Results:
Successful compile
Expected Results:
test.cs(18,8): error CS0136: A local variable named 'a' cannot be declared in
this scope because it would give a different meaning to 'a', which is already
used in a 'child' scope to denote something else
How often does this happen? 
Everytime
Additional Information:
-- 
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