Mercurial > projects > dstress
annotate run/i/is_13_A.d @ 1440:5224177dd804
r7388@birke: tk | 2007-03-29 15:55:00 +0200
is -> static is
author | thomask |
---|---|
date | Sat, 31 Mar 2007 08:25:50 +0000 |
parents | 9dcac8d4e97f |
children | b8c0195059d9 |
rev | line source |
---|---|
914 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Sean Kelly <sean@f4.ca> | |
6 // @date@ 2006-03-15 | |
7 // @uri@ news:dv9okf$mfp$1@digitaldaemon.com | |
8 | |
9 module dstress.run.i.is_13_A; | |
10 | |
11 class C{ | |
12 int dummy; | |
13 | |
14 int test(int i){ | |
15 return i * dummy; | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
1440 | 20 static if(!is(C.test == delegate)){ |
21 static assert(0); | |
914 | 22 } |
23 | |
24 return 0; | |
25 } |