view nocompile/delegate_07.d @ 1536:89775df1607d

vtable can't be used as a template parameter
author thomask
date Mon, 07 May 2007 05:20:25 +0000
parents 1f6cf5ccfbc9
children
line wrap: on
line source

// $HeaderURL$
// $Date$
// $Author$

// delegates can only be initialized with non-static member functions

// __DSTRESS_ELINE__ 19

module dstress.nocompile.delegate_07;

struct MyStruct{
	int test;
}

int main(){
	int delegate() dl;
	
	MyStruct s;
	dl = &s.test;

	return 0;
}