repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail22133.d
blob
a30d430f694673f61365be32b32e8b69d8166f99
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
{
11
void
popFront
()() {}
12
}
13
14
auto
fail22133
(
const
Slice s
)
15
{
16
s
.
popFront
;
17
return
s
.
popFront
;
18
}
19
20
auto
ok22133
(
Slice s
)
21
{
22
s
.
popFront
;
23
return
s
.
popFront
;
24
}