d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / b20067.d
blobaf79cabfed0d659ab4a7c24d17c29d5d99e43358
1 struct S1
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(){}
10 struct S2
12 int i;
13 bool b;
14 alias empty = b;
15 alias front = i;
16 void popFront(){}
19 void main()
21 foreach(n; S1()) { } // 2.086: Error: cannot infer argument types
22 foreach(n; S2()) { } // 2.086: Error: cannot infer argument types