view compile/o/opCatAssign_22_A.d @ 1625:4e908dadd51c

modulo operations with complex numbers are allowed
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 14:59:13 +0100
parents f1c494dc588a
children
line wrap: on
line source

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

// @author@	John S. Skogtvedt <teleledningsanka@gmail.com>
// @date@	2007-02-18
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=980
// @desc@	[Issue 980] If a function tries to concatenate a char to a empty array, dmd complains that the function can't be evaluated at compile time

module dstress.compile.o.opCatAssign_22_A;

char[] test(){
	char[] s = "";
	return s ~= "o";
}

const x = test();
static assert(x == "o");