blob: 2c42dd32fdc1920a8e64ff4d81c63a70bd042cab [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice13459.d(12): Error: undefined identifier `B`
fail_compilation/ice13459.d(18): Error: none of the overloads of `opSlice` are callable using argument types `(int, int)`
fail_compilation/ice13459.d(11): Candidates are: `ice13459.A.opSlice()`
---
*/
struct A
{
auto opSlice() const {}
auto opSlice() { return B; }
}
void main()
{
auto df = A();
foreach (fi; df[0..0]) {}
}