www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2340] New: Template properties don't work

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2340

           Summary: Template properties don't work
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


struct A
{
    void foo(int) {}
    void bar(T)(T) {}
}

void main()
{
    A a;
    a.foo = 5;
    a.bar = 6;
}

The last line of main does not compile.


-- 
Sep 06 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2340


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-10-20 22:18 -------
Fixed dmd 1.036 and 2.020


-- 
Oct 20 2008