Mercurial > projects > dstress
annotate run/interface_12.d @ 1618:87a6ab8f478d
Returns of non-void expressions are no longer valid in void functions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:48:11 +0100 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
345 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Tom S <h3r3tic@remove.mat.uni.torun.pl> | |
6 // @date@ 2005-03-20 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3283 |
345 | 8 |
9 module dstress.run.interface_12; | |
10 | |
11 interface IParent{ | |
12 } | |
13 | |
14 interface IChild : IParent{ | |
15 } | |
16 | |
17 class MyClass : IChild{ | |
18 } | |
19 | |
20 void main(){ | |
21 IChild b = new MyClass(); | |
22 Object o = cast(Object)b; | |
1618
87a6ab8f478d
Returns of non-void expressions are no longer valid in void functions.
Christian Kamm <kamm incasoftware de>
parents:
1489
diff
changeset
|
23 return; |
345 | 24 } |