Mercurial > projects > dstress
view run/o/odd_bug_04_E.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ John Demme <me@teqdruid.com> // @date@ 2005-12-05 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5755 module dstress.run.o.odd_bug_04_E; abstract class Container(V) { abstract int opApply(int delegate(ref V) dg); } abstract class MutableList(V): Container!(V) { abstract MutableList insertBefore(int i, V item); abstract MutableList append(V item); abstract MutableList append(Container!(V) items); } class AbstractMutableList(V): MutableList!(V) { MutableList!(V) prepend(Container!(V) items) { foreach(V item; items) { insertBefore(0, item); } return this; } } int main(){ AbstractMutableList!(int) paramList; test1(); test2(); return 0; } void test1(){ try { throw new Exception( "uups" ); } catch (Exception o) { } } void test2(){ void testBoolParam() { try { throw new Exception( "uups" ); } catch (Exception o) { } } testBoolParam(); }