Mercurial > projects > dstress
view nocompile/try_05.d @ 1578:10a4a6037695
[Issue 1415] gdc crash
<sean@chittenden.org>
2007-09-02
http://d.puremagic.com/issues/show_bug.cgi?id=1415
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:46 +0000 |
parents | e3c9f22bff58 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // it is an error if any Catch Parameter type T1 hides a subsequent Catch with type T2 // __DSTRESS_ELINE__ 20 module dstress.nocompile.try_05; class MyException : Exception{ this(char[] msg){ super(msg); } } int main(){ try{ throw new MyException(""); }catch(Exception e1){ assert(0); }catch(MyException e2){ assert(1); } return 0; }