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
10 {
popFrontSlice11     void popFront()() {}
12 }
13 
fail22133(const Slice s)14 auto fail22133(const Slice s)
15 {
16     s.popFront;
17     return s.popFront;
18 }
19 
ok22133(Slice s)20 auto ok22133(Slice s)
21 {
22     s.popFront;
23     return s.popFront;
24 }
25