diff nocompile/cast_02.d @ 354:6aaba08b3ca2

can't cast pointer to array Walter <walter@digitalmars.com> 2005-03-22 mail:001001c52eca$aef1c980$0200a8c0@colossus
author thomask
date Tue, 22 Mar 2005 11:46:11 +0000
parents
children 38ea1bb385b6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/cast_02.d	Tue Mar 22 11:46:11 2005 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Regan Heath <regan@netwin.co.nz>
+// @date@	2004-08-19
+// @uri@	news:opsczziyi5a2sq9@digitalmars.com
+// @url@	nntp://digitalmars.com/digitalmars.D.bugs/1407
+
+// __DSTRESS_ELINE__ 22
+
+module dstress.nocompile.cast_02;
+
+enum Enum{
+	a
+}
+
+int main(){
+	bit[] b;
+	Enum e;
+	b = cast(bit[])
+		(cast(bit*)e);
+	return 0;
+}