Mercurial > projects > dstress
view run/c/catch_08_G.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +0200 |
parents | afe5f4bc8f9c |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <pop.atry@gmail.com> // @date@ 2007-10-07 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1595 // @desc@ [Issue 1595] Multiple typedefs of Exception should be treated as different types. module dstress.run.c.catch_08_G; class Base{ } typedef Base Cat; typedef Base Dog; int main(){ try{ throw new Base(); }catch(Dog d){ assert(0); }catch(Cat c){ assert(0); }catch(Base b){ return 0; } assert(0); }