July 02, 2017 strange static assert failure | ||||
|---|---|---|---|---|
| ||||
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 ?
| ||||
July 02, 2017 Re: strange static assert failure | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Sunday, 2 July 2017 at 08:55:42 UTC, Basile B. wrote:
> The second assert fails. Do you know why ?
pass your way, i've forgot the typeof()... everything is okay actually.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply