I got an error message with the following code saying:

  Error: no property 'length' for type 'int[string]'

Shouldn't the error message say 'length()'?

~~~
import std.stdio;

void main() {
  int[string] a;
  a["one"] = 1;
  a["two"] = 2;
  a["three"] = 3;
  auto len = a.length();
}
~~~

DMD 2.070.2

Reply via email to