Mercurial > projects > dstress
view compile/o/opCatAssign_22_B.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
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_B; char[] test(){ char[] s = "a"; return s ~= "o"; } const x = test(); static assert(x == "ao");