[Issue 6847] New: typeof(super) doesn't work outside member function
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Oct 24 21:53:30 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6847
           Summary: typeof(super) doesn't work outside member function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-10-24 21:52:24 PDT ---
This issue is similar to bug 6087.
template True(T)
{
    immutable True = true;
}
class Foo
{}
class Bar : Foo
{
    static assert( True!(typeof(super)) );
}
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list