https://issues.dlang.org/show_bug.cgi?id=15753
Issue ID: 15753
Summary: clear method for AA not work
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
"associative array" page of the language reference clearly denotes:
All keys can be removed by using the method clear.
But following code won't compile.
void main() {
string[string] hash = [ "k":"v" ];
hash.clear();
}
main.d(3): Error: no property 'clear' for type 'string[string]'
--