[svn r108] Now basic suppport for complex types. =,+,-,*,/ are supported.

This commit is contained in:
Tomas Lindquist Olsen
2007-11-19 02:58:58 +01:00
parent 6da09c01b3
commit 5e9f5034ff
11 changed files with 592 additions and 392 deletions

14
test/complex2.d Normal file
View File

@@ -0,0 +1,14 @@
module complex2;
void main()
{
cdouble c = 3.0 + 0i;
cdouble d = 2.0 + 0i;
{
cdouble c1 = c + 3.0;
cdouble c2 = c - 3.0i;
}
{
cdouble c1 = c / 2.0;
}
}