view nocompile/delegate_03.d @ 338:1f6cf5ccfbc9

1) updated rules to dmd-0.119 2) added __DSTRESS_ELINE__ tags
author thomask
date Mon, 21 Mar 2005 20:45:57 +0000
parents 2c9eb7937bb2
children
line wrap: on
line source

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

// delegates can't be initialized with static member functions or
// non-member functions

// __DSTRESS_ELINE__ 22

module dstress.nocompile.delegate_03;

struct MyStruct{
	static int test(){
		return 3;
	}
}

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

	return 0;
}