[Mono-bugs] [Bug 576337] New: The Soft Debugger can't inspect locals with the same name but different scope

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 2 18:53:35 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=576337

http://bugzilla.novell.com/show_bug.cgi?id=576337#c0


           Summary: The Soft Debugger can't inspect locals with the same
                    name but different scope
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: debug
        AssignedTo: vargaz at gmail.com
        ReportedBy: lluis at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


For example:

class Program
{
    static void Main()
    {
        for (int n=0; n<10; n++)
            Console.WriteLine (n);
        for (int n=0; n<10; n++)
            Console.WriteLine (n);
    }
}

The only way to get a local is using MethodMirror.GetLocal(), but this call
fails with an exception when trying to get 'n':
System.Reflection.AmbiguousMatchException: More that one local has the name
'n'.

-- 
Configure bugmail: http://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