http://d.puremagic.com/issues/show_bug.cgi?id=2017
------- Comment #1 from [EMAIL PROTECTED] 2008-10-25 05:48 -------
The following example now compiles in DMD v2.020, but it wasn't mentioned in
the changelog, but the docs don't mention "abc"[] as a method of creating
dynamic arrays.
test.d
------
import std.stdio;
void main() {
auto str1 = "abc"[]; // OK
auto str2 = ['a', 'b', 'c'][];
writefln(typeof(str1).stringof);
writefln(typeof(str2).stringof);
}
Output
------
invariant(char)[]
char[]
--
