http://d.puremagic.com/issues/show_bug.cgi?id=7375


Walter Bright <bugzi...@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzi...@digitalmars.com


--- Comment #2 from Walter Bright <bugzi...@digitalmars.com> 2012-01-29 
22:16:19 PST ---
A one file version:
-------------------
class A {}
class B(int i) : A {}
class C(int i) : B!i {}

template DerivedAlias(int i)
{
    alias B!i DerivedAlias;
}

alias DerivedAlias!22 X;

void main(string[] args)
{
    A foo = new C!11();
    //auto dummy = cast(B!11)foo;
    assert(cast(B!22)foo is null);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to