[Issue 19082] Cannot inline "...Slides.numberOfFullFrames", "...Slides.gap"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 16 08:18:27 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19082

--- Comment #3 from Mitu <the.mail.of.mi2 at gmail.com> ---
OK, I managed to find a minimal example. The code below builds properly for
debug build, but fails with the release build.

==================================
/+ dub.sdl: name "main" +/

import std.algorithm;
import std.range;

void main()
{
        [1].map!(x => x).slide(2);
}
==================================

Replacing .map!(x => x) with .map!"a" makes the code code work strangely.

--


More information about the Digitalmars-d-bugs mailing list