d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail22133.d
bloba30d430f694673f61365be32b32e8b69d8166f99
1 // https://issues.dlang.org/show_bug.cgi?id=22133
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail22133.d(16): Error: `s.popFront()()` has no effect
6 fail_compilation/fail22133.d(17): Error: template `s.popFront()()` has no type
7 ---
8 */
9 struct Slice
11 void popFront()() {}
14 auto fail22133(const Slice s)
16 s.popFront;
17 return s.popFront;
20 auto ok22133(Slice s)
22 s.popFront;
23 return s.popFront;