You're trying to append to something that's not an array, you haven't set the value part to be an array so you're doing doing the same as:

int a;
a ~= 5;

which obviously doesn't work. If you want to append to an associative array create it like this:

Node[][bool] test; //Conceptually maybe clearer as Node[] test[bool]
Node node;
test[false] ~= node;

Or set them explicitly as other posters have explained if you don't want an array of values at a given key.


Reply via email to