www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1353] New: Can't use typeof() in base class list.

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

           Summary: Can't use typeof() in base class list.
           Product: D
           Version: 1.017
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: aziz.kerim gmail.com


class A
{ int a; }
class B : typeof(new A)
{ int b; }

According to the specs this is illegal, but why not allow it?


-- 
Jul 20 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1353


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
         OS/Version|Linux                       |All
           Platform|PC                          |All




-- 
Jul 23 2007