blob: fa0e0c3cdcf9d3e486776931355948f54fb8ea10 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail41.d(17): Error: cannot return non-void from void function
---
*/
class MyClass
{
}
MyClass[char[]] myarray;
void fn()
{
foreach (MyClass mc; myarray)
return mc;
}