view nocompile/bug_expression_1147.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents 1f6cf5ccfbc9
children 52c9e86b6486
line wrap: on
line source

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

// @author@	Regan Heath <regan@netwin.co.nz>
// @date@	2004-08-31
// @uri@	news:opsdldgki75a2sq9@digitalmars.com
// @url@	nntp://digitalmars.com/digitalmars.D.bugs/1685

// __DSTRESS_ELINE__ 16

module dstress.nocompile.bug_expression_1147;

template A(Type : Type[]){
	bool A(Type[] a){
		this.bar();
	}
}

template B(){
	bool foo(char[] x){
		return A!(typeof(x))(x);
	}
}

class C{
	mixin B;
}

void main(){
	C c = new C();
	return 0;
}