Mercurial > projects > dstress
view nocompile/try_05.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 3414705c41ac |
children | f87ba6507260 |
line wrap: on
line source
// it is an error if any Catch Parameter type T1 hides a subsequent Catch with type T2 module dstress.nocompile.try_05; class MyException : Exception{ this(char[] msg){ super(msg); } } int main(){ try{ throw new MyException(""); }catch(Exception){ assert(0); }catch(MyException){ assert(1); } return 0; }