[Mono-bugs] [Bug 412865] [After GSharing] Accessing properties in generic classes is currently broken

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 29 06:14:46 EDT 2008


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

User martin at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=412865#c1


Martin Baulig <martin at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |martin at novell.com




--- Comment #1 from Martin Baulig <martin at novell.com>  2008-07-29 04:14:46 MDT ---
Accessing properties in generic classes got broken due to an accident, I'll
have a look at this after generics sharing has been implemented in the
debugger.

======
public class Foo<T>
{
    public readonly T Data;

    public Foo (T t)
    {
        this.Data = t;
    }

    public T GetData {
        get {
            return Data;
        }
    }
}

class X
{
    static void Main ()
    {
        Foo<int> foo = new Foo<int> (3);
        Console.WriteLine (foo.GetData);    // @MDB BREAKPOINT: test
    }
}
======

======
    AssertHitBreakpoint (thread, "test", "X.Main()");
    AssertPrint (thread, "foo.GetData", "(int) 3");
======


-- 
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