[Mono-bugs] [Bug 659970] New: CS0136 Error when using method parameter after declaration of empty delegate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 16 13:12:16 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=659970#c0


           Summary: CS0136 Error when using method parameter after
                    declaration of empty delegate
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: tom.philpot at logos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

The attached code gives a CS0136 error when it shouldn't.



Reproducible: Always

Steps to Reproduce:
1. gmcs Foo.cs /t:library

Actual Results:  
/opt/mono-2.8/bin/gmcs Foo.cs /t:library
Foo.cs(7,35): error CS0136: A local variable named `bValue' cannot be declared
in this scope because it would give a different meaning to `bValue', which is
already used in a `parent or current' scope to denote something else


Expected Results:  
Foo.cs(11,3): warning CS0642: Possible mistaken empty statement
Foo.cs(5,36): warning CS0067: The event `C.MyDelegate' is never used

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


More information about the mono-bugs mailing list