diff tests/parser/new_1.d @ 163:362265427838

Fixes to types for constructor and also removed DFunction's from DStruct, DClass and DInterface
author Anders Johnsen <skabet@gmail.com>
date Tue, 22 Jul 2008 16:50:47 +0200
parents 0f38f1a0f06f
children 7606387b2f0a
line wrap: on
line diff
--- a/tests/parser/new_1.d	Tue Jul 22 16:22:58 2008 +0200
+++ b/tests/parser/new_1.d	Tue Jul 22 16:50:47 2008 +0200
@@ -1,24 +1,2 @@
-
-class A
-{
-    this(long y)
-    {
-    }
-
-    this(int y)
-    {
-    }
-
-    int x;
-}
-
-struct B
-{
-}
-
-void main()
-{
-    B b;
-    long x;
-    A a = new A(x);
-}
+class A{this(int y){}int x;}struct B
+{}void main(){B b;long x;A a=new A(x);}