1. Vincenzo Ampolo
  2. gdc

Source

gdc / gdc.test / fail_compilation / fail251.d

1
2
3
4
5
6
bool foo() {
        foreach (x; xs) {}
        return true;
}

static assert(foo());