changeset 1557:de3b217ccd1e

[Issue 1344] Can't implicitly convert literal 0 to typedef of ulong Russ Lewis <webmaster@villagersonline.com> 2007-07-17 http://d.puremagic.com/issues/show_bug.cgi?id=1344
author thomask
date Mon, 23 Jul 2007 18:46:24 +0000
parents ca435c6f02c8
children d40d75fcd5c5
files compile/t/typedef_24_A.d compile/t/typedef_24_B.d
diffstat 2 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/typedef_24_A.d	Mon Jul 23 18:46:24 2007 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-07-17
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1344
+// @desc@	[Issue 1344] Can't implicitly convert literal 0 to typedef of ulong
+
+module dstress.compile.t.typedef_24_A;
+
+typedef ulong U;
+
+const U u = 0;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/typedef_24_B.d	Mon Jul 23 18:46:24 2007 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <webmaster@villagersonline.com>
+// @date@	2007-07-17
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1344
+// @desc@	[Issue 1344] Can't implicitly convert literal 0 to typedef of ulong
+
+module dstress.compile.t.typedef_24_B;
+
+U u = 0;
+
+typedef ulong U;