blob: 12c672abe4e1f2e192424541b0fcb8a4ad6d4c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* REQUIRED_ARGS: -preview=dip1000
*/
// https://issues.dlang.org/show_bug.cgi?id=16037
@safe:
void testXXX () @nogc
{
Object o;
scope bool delegate (Object) alwaysFalse = (Object y) { return false; };
scope c1 = o !is null ? (Object y) { return o is y; } : alwaysFalse;
}
auto f() @nogc
{
int a;
void g(){ a=1; }
scope h=&g;
h();
}
|