[Mono-bugs] [Bug 647845] New: Regression: CS1061 wrongly generated by dmcs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 19 16:27:28 EDT 2010


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

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


           Summary: Regression: CS1061 wrongly generated by dmcs
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: goldencrystal at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=395822)
 --> (http://bugzilla.novell.com/attachment.cgi?id=395822)
Associated test case

Description of Problem:
The new C# compiler seems to have a problem determining named elements in
scope:
An element with the requested name exists in scope, but the compiler will use
the one with the same name in an outer scopeā€¦
This did not happen in previous version of the compiler (mono 2.6.x / gmcs) nor
do it happen with csc.
I extracted a simple test case for this bug. The problem might be more general
but I know this one is a good example.

Steps to reproduce the problem:
1. Save the attached file to disk (Main.cs)
2. Compile it with dmcs Main.cs


Actual Results:
Main.cs(11,66): error CS1061: Type `int' does not contain a definition for
`value' and no extension method `value' of type `int' could be found (are you
missing a using directive or an assembly reference?)

Expected Results:
Compilation Successful


How often does this happen? 
Always


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