[Issue 5014] New: is(T U == super) returns non-shared parent types for shared(T)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 7 15:17:21 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5014
Summary: is(T U == super) returns non-shared parent types for
shared(T)
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: sean at invisibleduck.org
--- Comment #0 from Sean Kelly <sean at invisibleduck.org> 2010-10-07 15:16:56 PDT ---
The following code:
import std.stdio;
import std.traits;
template Bases(T)
{
static if(is(T U == super))
alias U Bases;
else
static assert(false);
}
void main()
{
alias Bases!(shared(Exception)) bases;
foreach(i, e; bases)
writeln(bases[i].stringof);
}
Prints "Throwable" when it should probably print "shared(Throwable)".
--
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