Mercurial > projects > dstress
comparison run/t/typedef_06_B.d @ 543:4b941e2f6d4f
typedef & class members
Mizuno Hiroki <hiroki1124@hotmail.com>
2005-05-16
news:d6ac08$1uug$1@digitaldaemon.com
author | thomask |
---|---|
date | Tue, 17 May 2005 15:26:54 +0000 |
parents | |
children | b8c0195059d9 |
comparison
equal
deleted
inserted
replaced
542:c4c408b85f15 | 543:4b941e2f6d4f |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Mizuno Hiroki <hiroki1124@hotmail.com> | |
6 // @date@ 2005-05-16 | |
7 // @uri@ news:d6ac08$1uug$1@digitaldaemon.com | |
8 | |
9 module dstress.run.t.typedef_06_B; | |
10 | |
11 class Org{ | |
12 int dyn(int i){ | |
13 return i*2; | |
14 } | |
15 } | |
16 | |
17 typedef Org Ali; | |
18 | |
19 int main(){ | |
20 Ali a = new Ali; | |
21 | |
22 assert(a.dyn(3)==6); | |
23 | |
24 return 0; | |
25 } | |
26 |