How to make commented code to compile?

bauss jj_1337 at live.dk
Tue Oct 10 08:12:50 UTC 2017


On Monday, 9 October 2017 at 15:22:54 UTC, Adam D. Ruppe wrote:
> On Monday, 9 October 2017 at 15:15:48 UTC, Zhuo Nengwen wrote:
>> test(cast(ushort) 1, (m, c) => {
>>   writeln(m);
>>   writeln(m);
>> });
>
> Just remove the =>
>
> (m, c) {
>   // code here
> }

Common mistake from people who worked with LINQ in C#.


More information about the Digitalmars-d-learn mailing list