If it isn't supposed to work anymore, just close the report.
import std.variant;
void main()
{
Variant v;
v = null;
}
$ dmd test.d
/std/traits.d(1755): Error: static assert "argument is not a class or interface"
/std/traits.d(1818): instantiated from here: BaseTypeTuple!(typeof(null))
/std/traits.d(1933): instantiated from here: BaseClassesTuple!(typeof(null))
/std/traits.d(2230): instantiated from here: TransitiveBaseTypeTuple!(typeof(null))
/std/variant.d(255): instantiated from here: ImplicitConversionTargets!(typeof(null))
/std/variant.d(543): instantiated from here: handler!(typeof(null))
test.d(6): instantiated from here: opAssign!(typeof(null))
Comment #1 by k.hara.pg — 2011-12-09T02:51:56Z
2.057head changes the type of null literal from void* to typeof(null).
But std.variant yet not support it.
Workaround:
import std.variant;
void main()
{
Variant v;
//v = null;
v = (void*).init;
}