view compile/f/foreach_30_B.d @ 533:c8f0ffd00273

nested foreach and opApply pragma <pragma_member@pathlink.com> 2005-05-12 news:d6010n$i01$1@digitaldaemon.com
author thomask
date Sat, 14 May 2005 05:12:26 +0000
parents
children b8c0195059d9
line wrap: on
line source

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

// @author@	pragma <pragma_member@pathlink.com>
// @date@	2005-05-12
// @uri@	news:d6010n$i01$1@digitaldaemon.com

module dstress.compile.f.foreach_30_B;

class Collection{
	int opApply(int delegate(inout int) dg){
		return 0;
	}
}

bool test(){
	Collection a,b;
	
	foreach(int x; a){
		foreach(int y; b){
			goto label;
		}
	}
	
	return true;

label:
	return false;
}