Mercurial > projects > dstress
view run/bug_20050418_02.d @ 447:3522652ca5f0
Kris <fu@bar.com>
2005-04-18
news:d3rulu$bn9$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 18 Apr 2005 07:49:34 +0000 |
parents | |
children | 1e6afb94ce6d |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kris <fu@bar.com> // @date@ 2005-04-18 // @uri@ news:d3rulu$bn9$1@digitaldaemon.com module dstress.run.bug_20050418_02; class Buffer{ uint limit; int position; invariant{ assert (position <= limit); } } class Mapped : Buffer{ this(){ } } int main(){ Buffer a = new Buffer(); Mapped b = new Mapped(); Buffer c = new Mapped(); assert(a); assert(b); assert(c); return 0; }