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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
345
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
1 // $HeadURL$
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
2 // $Date$
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
3 // $Author$
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
4
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
5 // @author@ Tom S <h3r3tic@remove.mat.uni.torun.pl>
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
6 // @date@ 2005-03-20
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 345
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3283
345
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
8
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
9 module dstress.run.interface_12;
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
10
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
11 interface IParent{
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
12 }
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
13
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
14 interface IChild : IParent{
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
15 }
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
16
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
17 class MyClass : IChild{
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
18 }
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
19
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
20 void main(){
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
21 IChild b = new MyClass();
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
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
d249b963c64c Tom S <h3r3tic@remove.mat.uni.torun.pl>
thomask
parents:
diff changeset
24 }