diff compile/o/opMod_03_C.d @ 1625:4e908dadd51c

modulo operations with complex numbers are allowed
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 14:59:13 +0100
parents nocompile/o/opMod_03_C.d@daef239f37cf
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/opMod_03_C.d	Thu Jan 06 14:59:13 2011 +0100
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2006-11-18
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=551
+// @desc@	[Issue 551] New: Modulo operator works with imaginary and complex operands
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.o.opMod_03_C;
+
+void foo(){
+	float a;
+	ifloat b;
+
+	auto x = a % b;
+}