changeset 1626:e160bfec54d5

add test
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 15:52:55 +0100
parents 4e908dadd51c
children e1b954780837
files run/class_cast.d
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/class_cast.d	Thu Jan 06 15:52:55 2011 +0100
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	SiegeLoard 
+// @date@	2010-06-01
+// @uri@	http://dsource.org/projects/ldc/ticket/450
+
+interface A
+{
+	
+}
+
+class B : A
+{
+	byte[2] a;
+	real b;
+}
+
+void main()
+{
+	A a = new B();
+	B b = cast(B) a;
+}