Mercurial > projects > dstress
view compile/o/opCat_26_A.d @ 1407:f1c494dc588a
[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
John S. Skogtvedt <teleledningsanka@gmail.com>
2007-02-18
http://d.puremagic.com/issues/show_bug.cgi?id=980
author | thomask |
---|---|
date | Thu, 08 Mar 2007 16:29:23 +0000 |
parents | |
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.opCat_26_A; char[] test(){ char[] s = ""; return s ~ "o"; } const x = test(); static assert(x == "o");