min.dhover×29 error×3all
@safe pure nothrow @nogc:
int 
int min.sum(int delegate() pure nothrow @nogc @safe[] xs...) pure nothrow @nogc @safe
sum
(scope int delegate() @safe pure nothrow @nogc []
(parameter) int delegate() pure nothrow @nogc @safe[] xs
xs
...) { int
(local variable) int s
s
; foreach (
(parameter) int delegate() pure nothrow @nogc @safe x
x
;
(parameter) int delegate() pure nothrow @nogc @safe[] xs
xs
)
(local variable) int s
s
+=
(local variable) int delegate() pure nothrow @nogc @safe x
x
(); return
(local variable) int s
s
; }
int
int min.g(int a, int b) pure nothrow @nogc @safe
g
(int
(parameter) int a
a
, int
(parameter) int b
b
) =>
int min.sum(int delegate() pure nothrow @nogc @safe[] xs...) pure nothrow @nogc @safe
sum
(
(parameter) int a
a
,
(parameter) int b
b
+ 1); // locals captured
function `min.g` is `@nogc` yet allocates closure for `g()` with the GC delegate `int() => a` closes over variable `a` `a` declared here delegate `int() => b + 1` closes over variable `b` `b` declared here
int
int min.h(ref int a) pure nothrow @nogc @safe
h
(ref int
(parameter) int a
a
) =>
int min.sum(int delegate() pure nothrow @nogc @safe[] xs...) pure nothrow @nogc @safe
sum
(
(parameter) int a
a
, 2); // ref param captured
function `min.h` is `@nogc` yet allocates closure for `h()` with the GC delegate `int() => a` closes over variable `a` `a` declared here
int
int min.k(int a) pure nothrow @nogc @safe
k
(int
(parameter) int a
a
) =>
int min.sum(int delegate() pure nothrow @nogc @safe[] xs...) pure nothrow @nogc @safe
sum
(
int min.sum(int delegate() pure nothrow @nogc @safe[] xs...) pure nothrow @nogc @safe
sum
(
(parameter) int a
a
), 1); // nested
function `min.k` is `@nogc` yet allocates closure for `k()` with the GC delegate `int() => a` closes over variable `a` `a` declared here
void
void min.lz(lazy scope int x) pure nothrow @nogc @safe
lz
(scope lazy int
(parameter) int x
x
) {} // plain lazy for comparison
void
void min.m(int a) pure nothrow @nogc @safe
m
(int
(parameter) int a
a
) {
void min.lz(lazy scope int x) pure nothrow @nogc @safe
lz
(
(parameter) int a
a
+ 1); }