[Issue 15550] [Reg 2.070.0-b1] compile error while testing template constraint

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 16 09:46:50 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15550

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
The bug boils down to this behavior change.

cat > bug.d << CODE
struct Vector(T, int N)
{
    void opDispatch(string, U)(U)
    {
    }

}

static assert(!is(typeof(Vector!(int, 2)._isMatrix)));
CODE

dmd -c -o- bug
----
bug.d(9): Error: static assert  (!true) is false
----

It works w/ 2.069.2.

--


More information about the Digitalmars-d-bugs mailing list