xxxxxxxxxx
module runnable;
import std.conv: text;
struct Foo1 {
char[][] matrix;
string spam() const pure {
char[] m = text(matrix).dup;
return m; // OK
}
}
struct Foo2 {
enum Bar : char { A }
Bar[][] matrix;
string spam1() const pure {
return text(matrix).dup; // OK
}
string spam2() const pure {
char[] m = text(matrix).dup;
return m; // line 22, Error
}
char[][] matrix2;
string spam3() const pure {
char[] m = text(matrix2).dup;
return m; // line 29, Error.
}
}
void main() {}