view run/f/function_05_D.d @ 928:ecd311c97f12

<benoit@tionex.de> 2006-03-09 news:bug-30-3@http.d.puremagic.com/bugzilla/
author thomask
date Tue, 21 Mar 2006 10:42:20 +0000
parents
children 81222734adf3
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	<benoit@tionex.de>
// @date@	2006-03-09
// @uri@	news:bug-30-3@http.d.puremagic.com/bugzilla/

module dstress.run.f.function_05_D;

class C{
}

C func(aliasFunc f){
	return f();
}

C createC(){
	return new C();
}

alias C function() aliasFunc;

int main(){
	if(!func(&createC)){
		assert(0);
	}

	return 0;
}