[Issue 614] Real and imaginary properties of complex numbers not allowed as template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 24 23:20:35 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=614


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from davidl at 126.com  2008-06-25 01:20 -------
dstress test cases get typos.

This bug is already fixed.
for partially typos related to this bug

Index: compile/c/creal_37_B.d
===================================================================
--- compile/c/creal_37_B.d      (revision 1832)
+++ compile/c/creal_37_B.d      (working copy)
@@ -19,7 +19,7 @@


 template getImaginaryPart(creal x){
-       const real getImanginaryPart = x.im;
+       const real getImaginaryPart = x.im;
 }

 static assert(getImaginaryPart!(a) == 2.0L);
Index: compile/c/cfloat_12_B.d
===================================================================
--- compile/c/cfloat_12_B.d     (revision 1832)
+++ compile/c/cfloat_12_B.d     (working copy)
@@ -19,7 +19,7 @@


 template getImaginaryPart(cfloat x){
-       const float getImanginaryPart = x.im;
+       const float getImaginaryPart = x.im;
 }

 static assert(getImaginaryPart!(a) == 2.0f);
Index: compile/c/cdouble_12_B.d
===================================================================
--- compile/c/cdouble_12_B.d    (revision 1832)
+++ compile/c/cdouble_12_B.d    (working copy)
@@ -19,7 +19,7 @@


 template getImaginaryPart(cdouble x){
-       const double getImanginaryPart = x.im;
+       const double getImaginaryPart = x.im;
 }

 static assert(getImaginaryPart!(a) == 2.0);


-- 



More information about the Digitalmars-d-bugs mailing list