www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2136] New: typeof(super(...)) counted as a constructor call

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

           Summary: typeof(super(...)) counted as a constructor call
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: shro8822 vandals.uidaho.edu


class B { this(bool b, char[] c){} }

class C : B
{
        this()
        {
                alias typeof(super(false,"hello")) foo;
                super(false,"hello"); //line (8)
        }
}

(8) Error: multiple constructor calls


-- 
Jun 01 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2136


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2008-06-22 18:58 -------
Fixed dmd 1.031 and 2.015


-- 
Jun 22 2008