comparison 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
comparison
equal deleted inserted replaced
1406:45dbf7a80237 1407:f1c494dc588a
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ John S. Skogtvedt <teleledningsanka@gmail.com>
6 // @date@ 2007-02-18
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=980
8 // @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
9
10 module dstress.compile.o.opCat_26_A;
11
12 char[] test(){
13 char[] s = "";
14 return s ~ "o";
15 }
16
17 const x = test();
18 static assert(x == "o");