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 26f049fb26, phobos 330d6a4fd.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
b20067.d
blob
af79cabfed0d659ab4a7c24d17c29d5d99e43358
1
struct
S1
2
{
3
int
i
;
4
@property
int
ii
(){
return
0
;}
5
@property
bool
b
(){
return true
;}
6
alias
empty
=
b
;
7
alias
front
=
ii
;
8
void
popFront
(){}
9
}
10
struct
S2
11
{
12
int
i
;
13
bool
b
;
14
alias
empty
=
b
;
15
alias
front
=
i
;
16
void
popFront
(){}
17
}
18
19
void
main
()
20
{
21
foreach
(
n
;
S1
()) { }
// 2.086: Error: cannot infer argument types
22
foreach
(
n
;
S2
()) { }
// 2.086: Error: cannot infer argument types
23
}