annotate run/cast_08.d @ 1383:52c9e86b6486

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