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

           Summary: 'super' should be accessible inside template
                    constraint
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2013-01-22 17:57:11 PST ---
Following code should work.

class C {}
class D : C
{
    static bool test(C) { return true; }

    void foo()() if (is(typeof(test(super)))) {}
    void bar()() if (is(typeof(super) == C)) {}
}
void main()
{
    auto d = new D();
    d.foo();
    d.bar();
}

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

Reply via email to