Can't compile the code

Temtaime temtaime at gmail.com
Sun Apr 28 01:53:46 PDT 2013


int main() {
         auto f = (bool = false) {};

         f();
         return 0;
}

I can't compile this code on
DMD32 D Compiler v2.062

On windows. It says to me:
Error: expected 1 function arguments, not 0

On linux it seems to work(http://ideone.com/fsKYWR).


More information about the Digitalmars-d-learn mailing list