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

denizzzka 4denizzz at gmail.com
Tue Oct 9 15:23:15 PDT 2012


On Tuesday, 27 March 2012 at 12:57:18 UTC, bearophile wrote:
> 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?

+1, spent two hours with a similar problem


More information about the Digitalmars-d mailing list