view compile/f/forward_reference_13_D.d @ 651:fcca833f91c3

Carlos Santander B. <carlos8294@msn.com> 2004-07-12 http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html
author thomask
date Sun, 04 Sep 2005 11:58:22 +0000
parents
children
line wrap: on
line source

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

// @author@	Carlos Santander B. <carlos8294@msn.com>
// @date@	2004-07-12
// @uri@	http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html

module dstress.compile.f.forward_reference_13_D;

void bar(void delegate () dg){
	dg();
}

template Template(alias f){
	void caller(int i){
		bar (delegate { f(i); });
	}
}

class A{
	mixin Template!(foo);
	
	void foo (int i) {
	}
}