http://d.puremagic.com/issues/show_bug.cgi?id=2863

           Summary: Assertion failure: '0' on line 935 in file 'glue.c'
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: bugzi...@digitalmars.com


So now I'm playing with this new toy of D2, not using it in a serious way yet,
and I have written:

import std.stdio: writeln;
auto apply(alias f, TyArgs...)(TyArgs args) {
    return f(args);
}
void main() {
    writeln(  apply!( (x, y) { return x * y; } )(3, 4)  );
}

But when I compile it the compile spits out at compile-time:
Assertion failure: '0' on line 935 in file 'glue.c'

Bye,
bearophile


-- 

Reply via email to