[Issue 17716] wrong result of IsExpression when not in static assert
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 3 10:55:50 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17716
--- Comment #1 from ag0aep6g at gmail.com ---
Inside functions everything works as expected:
----
struct S { shared int* foo; int* bar; }
pragma(msg, is(shared S : S)); /* "true" - wrong */
void f()
{
pragma(msg, is(shared S : S)); /* "false" - correct */
}
----
--
More information about the Digitalmars-d-bugs
mailing list