comparison test/bug45.d @ 80:7299ff502248 trunk

[svn r84] Fixed: Returning from a void function from inside the try of a try-finally block was broken.
author lindquist
date Wed, 31 Oct 2007 22:35:39 +0100
parents
children
comparison
equal deleted inserted replaced
79:875617f89c51 80:7299ff502248
1 module bug45;
2
3 void foo() {
4 int bar;
5 scope(exit) { bar++; }
6 if (bar) return;
7 }
8
9 void main() {
10 foo();
11 }