view nocompile/try_05.d @ 1602:56d43974b468

Fix broken tests fvbommel pointed out in #2.
author Christian Kamm <kamm incasoftware de>
date Fri, 06 Mar 2009 15:48:16 +0100
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;
}