Mercurial > projects > dstress
diff run/c/catch_08_A.d @ 1568:afe5f4bc8f9c
[Issue 1595] Multiple typedefs of Exception should be treated as different types.
<pop.atry@gmail.com>
2007-10-07
http://d.puremagic.com/issues/show_bug.cgi?id=1595
author | thomask |
---|---|
date | Fri, 19 Oct 2007 17:07:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/catch_08_A.d Fri Oct 19 17:07:50 2007 +0000 @@ -0,0 +1,26 @@ +// $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_A; + +class Base{ +} + +typedef Base Cat; +typedef Base Dog; + +int main(){ + try{ + throw new Cat(); + }catch(Cat c){ + return 0; + } + assert(0); +} +