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: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
