D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6847 - typeof(super) doesn't work outside member function
Summary: typeof(super) doesn't work outside member function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-10-24 21:52 UTC by Kenji Hara
Modified: 2012-04-20 19:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2011-10-24 21:52:24 UTC
This issue is similar to bug 6087.

template True(T)
{
    immutable True = true;
}
class Foo
{}

class Bar : Foo
{
    static assert( True!(typeof(super)) );
}