Mercurial > projects > dstress
annotate run/s/scope_14_C.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | 1ee9a0dd42d9 |
children |
rev | line source |
---|---|
1217
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
2 // $Date$ |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
3 // $Author$ |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
4 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
5 // @author@ Michael Arntzenius <daekharel@gmail.com> |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
6 // @date@ 2006-11-20 |
1488 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=9156 |
1217
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 235] goto & scope: cannot goto forward into different try block level |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
9 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
10 module dstress.run.s.scope_14_C; |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
11 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
12 class C { |
1559 | 13 invariant() { |
1217
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
14 } |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
15 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
16 synchronized void foo() { |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
17 return; |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
18 } |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
19 } |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
20 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
21 int main(){ |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
22 C c = new C(); |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
23 c.foo(); |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
24 |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
25 return 0; |
cd5da42e46da
[Issue 235] goto & scope: cannot goto forward into different try block level
thomask
parents:
diff
changeset
|
26 } |