Mercurial > projects > dang
comparison 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 |
comparison
equal
deleted
inserted
replaced
162:0f38f1a0f06f | 163:362265427838 |
---|---|
1 | 1 class A{this(int y){}int x;}struct B |
2 class A | 2 {}void main(){B b;long x;A a=new A(x);} |
3 { | |
4 this(long y) | |
5 { | |
6 } | |
7 | |
8 this(int y) | |
9 { | |
10 } | |
11 | |
12 int x; | |
13 } | |
14 | |
15 struct B | |
16 { | |
17 } | |
18 | |
19 void main() | |
20 { | |
21 B b; | |
22 long x; | |
23 A a = new A(x); | |
24 } |