Comment #0 by Jesse.K.Phillips+D — 2014-02-03T13:17:12Z
In previous versions the following code compiled because there was no opCall:
import std.variant;
void main() {
auto v = Variant();
}
Error: need 'this' for 'opCall' of type '@trusted VariantN!(20u)()'
The opCall isn't static so it requires a this. A work around seems to be to add null:
Variant(null);