Summary: Lexing or Parsing issue with UFCS
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2011-03-25 
16:01:57 PDT ---
import std.stdio;
import std.file;
import std.path;
int[string] fileExtensions;
void main()
    string filename;
    if (!filename.isFile || filename.getExt !in fileExtensions)

> test.d(13): template argument expected following !

The way around this is to not use UFCS:
if (!filename.isFile || getExt(filename) !in fileExtensions)

which is a damn shame because UFCS is a great thing to have.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to