Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail16001.d

raw
1 // REQUIRED_ARGS: -de
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail16001.d(10): Deprecation: using `(args) => { ... }` to create a delegate that returns a delegate is error-prone.
6 fail_compilation/fail16001.d(10): Use `(args) { ... }` for a multi-statement function literal or use `(args) => () { }` if you intended for the lambda to return a delegate.
7 ---
8 */
9 void main() {
10 auto fail = () => {};
11 auto ok = () => () {};
12 }