Mercurial > projects > dstress
annotate compile/cast_interface.d @ 1624:16361129bf5f
add test
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Thu, 06 Jan 2011 14:25:32 +0100 |
parents | |
children |
rev | line source |
---|---|
1624 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ SiegeLoard | |
6 // @date@ 2010-06-01 | |
7 // @uri@ http://dsource.org/projects/ldc/ticket/450 | |
8 | |
9 interface A | |
10 { | |
11 | |
12 } | |
13 | |
14 class B : A | |
15 { | |
16 byte[2] a; | |
17 real b; | |
18 } | |
19 | |
20 void main() | |
21 { | |
22 A a = new B(); | |
23 B b = cast(B) a; | |
24 } | |
25 | |
26 |