blob: a0d1940908e7a00a750115763ce4ae12d06a0806 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail249.d(16): Error: invalid `foreach` aggregate `bar()` of type `void`
---
*/
module main;
public void bar()
{
}
void main()
{
foreach (Object o; bar())
{
debug Object foo = null; //error
}
}