strange static assert failure
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jul 2 01:55:42 PDT 2017
I played with some strange stuff that are allowed, i.e "super"
and "this" as BasicType, when I've reached this:
class B
{
super ringuard(){return null;}
void foo()
{
auto crate = ringuard();
pragma(msg, typeof(crate));
static assert(typeof(crate).stringof == Object.stringof);
static assert(is(crate == Object));
}
}
The second assert fails. Do you know why ?
More information about the Digitalmars-d-learn
mailing list