DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

foreach does not allow type qualifier with parenthesis(e.g. `const(string)`) #140

Closed anfive closed 8 years ago

anfive commented 8 years ago

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).