Skip to content

[REG master] aa[key] ~= null discarded #22354

@CyberShadow

Description

@CyberShadow
void main()
{
	int[][][string] aa;  // AA with nested array value type
	aa["x"] = null;
	aa["x"] ~= null;     // This append is silently lost!
	assert(aa["x"].length == 1);  // FAILS: length is still 0
}

Introduced in #21066, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions