# HG changeset patch # User thomask # Date 1164477208 0 # Node ID 98f3c6ec25d87c127537595598a41fc092f93aa0 # Parent 0972a593ff76de0215e12345394515a4dbcc4b98 [Issue 595] New: can't append to array/arrayliteral statically Nazo Humei 2006-11-25 news:bug-595-3@http.d.puremagic.com/issues/ diff -r 0972a593ff76 -r 98f3c6ec25d8 compile/o/opCat_25_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opCat_25_A.d Sat Nov 25 17:53:28 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-25 +// @uri@ news:bug-595-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 595] New: can't append to array/arrayliteral statically + +module dstress.compile.o.opCat_25_A; + +const char[] a = null; +const char[] b = a ~ 'd'; + +static assert(b == "d"); diff -r 0972a593ff76 -r 98f3c6ec25d8 compile/o/opCat_25_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opCat_25_B.d Sat Nov 25 17:53:28 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-25 +// @uri@ news:bug-595-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 595] New: can't append to array/arrayliteral statically + +module dstress.compile.o.opCat_25_B; + +const char[] a = null; +const char[] b = a ~ ['d']; + +static assert(b == "d");