Mercurial > projects > dstress
view norun/i/in_out_body_10_C.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg_1998@yahoo.com> // @date@ 2005-12-12 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5835 // __DSTRESS_TORTURE_BLOCK__ -release // __DSTRESS_ELINE__ 17 module dstress.norun.i.in_out_body_10_C; class Base { int func() out (result) { assert(0); } body { return 13; } } class Derived : Base { override int func() out (result) { assert(result); } body { return 17; } } int main() { Derived derived = new Derived(); assert(derived.func() == 17); }