Mercurial > projects > dstress
comparison run/class_03.d @ 144:0e1a3785ec97
1) added missing @url@/@uri@ tags
2) added dchar tests
3) cleanup of opPos, opNeg
4) renamed "classes" -> "class"
author | thomask |
---|---|
date | Wed, 17 Nov 2004 12:48:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
143:8784e1a831b8 | 144:0e1a3785ec97 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.class_03; | |
6 | |
7 class MyClass{ | |
8 int check( int x){ | |
9 x = (x+1) * 2; | |
10 return x; | |
11 } | |
12 } | |
13 | |
14 int main(){ | |
15 MyClass c = new MyClass(); | |
16 assert ( c.check(1) == 4 ); | |
17 return 0; | |
18 } |