http://d.puremagic.com/issues/show_bug.cgi?id=5785
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 AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------