Search

November 18, 2018
Issues »
...foo)); // "foo"

pragma(msg, __traits(compiles, __traits(identifier, test.foo))); // true

static assert(__traits(compiles...
November 14, 2018
Issues »
...are not contradicting:

    pragma(msg, typeof(() @safe { return &get(); }));         // _error_
    static assert(!is(typeof(() @safe...
November 10, 2018
Issues »
...typeof()) still stands
though:

    pragma(msg, typeof(() @safe...this should pass:
    static assert(!is(typeof(() @safe...
October 23, 2018
Issues »
...if( is( Fn Params == Params* ) )
          pragma(msg, "pointer");
      else
          static assert( false, "Argument has no...
October 22, 2018
Learn »
...static assert(hasMember!(BaseType, name));
                static if( __traits(isStaticFunction, __traits(getMember, BaseType, name)) ) {
                        pragma(msg...
October 22, 2018
Learn »
...static assert( hasMember!(BaseType.init, name));
                static if( __traits(isStaticFunction, __traits(getMember, BaseType, name)) ) {
                        pragma...
October 12, 2018
Issues »
...two lines:

    pragma(msg, P.ElementType);
    static assert(hasMember!(P, "ElementType"));

The pragma correctly prints...
October 08, 2018
Issues »
...com> ---
Test case:

int test() {
    return mixin("1", 2);
}

void testit() {
    static assert(test() == 12);
}

--
September 03, 2018
Learn »
...a pragma where you static assert for Foo(1).pos equality with 2:

--
static assert...
September 03, 2018
Learn »
...pragma(msg, pos);
    }
}

dmd -o- -unittest source/pgs/parser.d
1LU
1LU
---

The static assert...
18 19 20 21 22 23 24 25 26 27 28 29
Next ›   Last »