comparison run/class_cast.d @ 1626:e160bfec54d5

add test
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 15:52:55 +0100
parents
children
comparison
equal deleted inserted replaced
1625:4e908dadd51c 1626:e160bfec54d5
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 }