view run/l/lazy_02_A.d @ 1318:e9c13dbd0a8d

[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument Matti Niemenmaa <deewiant@gmail.com> 2006-12-26 http://d.puremagic.com/issues/show_bug.cgi?id=749
author thomask
date Sun, 31 Dec 2006 14:38:09 +0000
parents
children
line wrap: on
line source

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

// @author@	Matti Niemenmaa <deewiant@gmail.com>
// @desc@	2006-12-26
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=749
// @desc@	[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument

module dstress.run.l.lazy_02_A;

bool nextis(void delegate() dgpositive = {}) {
	return true;
}

bool looping(lazy bool condition) {
	return true;
}

int main() {
	looping(nextis());
	return 0;
}