Mercurial > projects > dstress
annotate run/cast_08.d @ 1383:52c9e86b6486
@url@ -> @uri@
author | thomask |
---|---|
date | Sun, 04 Mar 2007 13:07:35 +0000 |
parents | 2ffaa0006877 |
children | d3a3e0c251d8 |
rev | line source |
---|---|
232 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Jarrett Billingsley <kb3ctd2@yahoo.com> | |
6 // @date@ 2005-01-09 | |
7 // @uri@ news:crshla$2io3$1@digitaldaemon.com | |
1383 | 8 // @uri@ nntp://news.digitalmars.com/digitalmars.D.bugs/2659 |
232 | 9 |
10 module dstress.run.cast_08; | |
11 | |
12 class Parent{ | |
13 } | |
14 | |
15 class Child{ | |
16 } | |
17 | |
18 int main(){ | |
19 Child c = new Child(); | |
20 Parent p = cast(Parent) c; | |
21 p = null; | |
22 return 0; | |
23 } |