Mercurial > projects > dstress
view 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 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.class_03; class MyClass{ int check( int x){ x = (x+1) * 2; return x; } } int main(){ MyClass c = new MyClass(); assert ( c.check(1) == 4 ); return 0; }