Code behaves incorrectly if it is compiled in std.functional

krzaq via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 5 12:45:16 PDT 2015


On Friday, 5 June 2015 at 18:35:51 UTC, Marc Schütz wrote:
> On Friday, 5 June 2015 at 17:50:55 UTC, ketmar wrote:
>> `const int` works, so i can't see why `auto auto` is failing.
>
> Wrong analogy. Try `const const`, and it will fail with the 
> same error as `auto auto`: "redundant attribute".

const auto ans = 42;

compiles fine for me, so auto clearly can be used as a type.


More information about the Digitalmars-d mailing list