d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail17969.d
blob29bc3f448d8364238bc93ad0fc7960bedec1390e
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail17969.d(10): Error: no property `sum` for type `fail17969.__lambda6!(int[]).__lambda6.MapResult2!((b) => b)`
4 fail_compilation/fail17969.d(16): struct `MapResult2` defined here
5 ---
6 * https://issues.dlang.org/show_bug.cgi?id=17969
7 */
10 alias fun = a => MapResult2!(b => b).sum;
12 int[] e;
13 static assert(!is(typeof(fun(e)) == void));
14 void foo() { fun(e); }
16 struct MapResult2(alias fun)
18 int[] _input;