1. Vincenzo Ampolo
  2. gdc

Source

gdc / gdc.test / fail_compilation / fail249.d

module main;

public void bar() {

}

void main() {
        foreach(Object o ; bar()){
                debug Object foo = null; //error
        }
}