immutable method not callable using argument types () - doesn't make sense

bearophile bearophileHUGS at lycos.com
Tue Mar 27 05:57:16 PDT 2012


Steven Schveighoffer:

> So what the compiler is saying is that you can't call dup with 
> arguments (), you must call it with arguments '() immutable', 
> meaning you must call it on an immutable B, not a mutable B.

Any space for compiler error message improvements here?

Bye,
bearophile


More information about the Digitalmars-d mailing list