blob: 4a03a6fa41b80d0a469bd4df218b37b2e8ce34fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// REQUIRED_ARGS: -de
// PERMUTE_ARGS:
/*
TEST_OUTPUT:
---
fail_compilation/deprecate1553.d(19): Deprecation: cannot use foreach_reverse with a delegate
---
*/
struct S
{
int dg(int delegate(ref int a)) { return 0; }
}
void main()
{
S s;
foreach_reverse(a; &s.dg) {}
}
|