The following should be valid syntax, but DDT shows errors because of the bracket after the const in the foreach statement:
import std.stdio;
void main() {
const(string)[] a = ["Hello", "World"];
foreach(const(string) s; a) {
writeln(s);
}
}
Using const string works fine.
This issue should have been introduced within the last year, since my code used to not give any errors (unfortunately I don't have information about the version I had at the time).
The following should be valid syntax, but DDT shows errors because of the bracket after the const in the foreach statement:
Using const string works fine. This issue should have been introduced within the last year, since my code used to not give any errors (unfortunately I don't have information about the version I had at the time).