The following example fails to compile:
import std.stdio;
import std.typecons;
void main()
{
Nullable!(int) a;
static if(is(typeof(a) == std.typecons.Nullable!(U), U))
writeln("true");
else
writeln("false");
}
If I don't use a fully qualified name in the is-expression it compiles successfully. I've tried to compile with DMD 2.070.0-b1 and a bunch of older versions as well.
Comment #1 by robert.schadek — 2024-12-13T18:46:31Z