dmd/test/compilable/exception.d
Marc Schütz 442baf7675 Don't use foreach if the loop body modifies the iteration variable
This fixes a segfault in compiling vibe.d.
2015-08-30 17:33:53 +02:00

18 lines
223 B
D

class E2 : Exception { this() { super(null); } }
class E3 : Exception { this() { super(null); } }
void main()
{
try
{
}
catch (E3)
{
}
catch (E2)
{
}
catch (Exception)
{
}
}