1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13459.d(12): Error: undefined identifier `B`
5 fail_compilation/ice13459.d(18): Error: none of the overloads of 'opSlice' are callable using argument types (int, int), candidates are:
6 fail_compilation/ice13459.d(11):        ice13459.A.opSlice()
7 ---
8 */
9 struct A
10 {
opSliceA11     auto opSlice() {}
opSliceA12     auto opSlice() { return B; }
13 }
14 
main()15 void main()
16 {
17     auto df = A();
18     foreach (fi; df[0..0]) {}
19 }
20