blob: a30d430f694673f61365be32b32e8b69d8166f99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// https://issues.dlang.org/show_bug.cgi?id=22133
/*
TEST_OUTPUT:
---
fail_compilation/fail22133.d(16): Error: `s.popFront()()` has no effect
fail_compilation/fail22133.d(17): Error: template `s.popFront()()` has no type
---
*/
struct Slice
{
void popFront()() {}
}
auto fail22133(const Slice s)
{
s.popFront;
return s.popFront;
}
auto ok22133(Slice s)
{
s.popFront;
return s.popFront;
}
|