must scope for delegates restrict compilation?

Oleg B code.viator at gmail.com
Thu Oct 3 11:56:55 UTC 2019


Hello all

I think this code must get compilation error, but it didn't, 
furthermore result program get UB.

https://run.dlang.io/is/Qpr278

Is this correct behavior and why?


More information about the Digitalmars-d-learn mailing list