[Issue 12921] New: Module std.getopt does not respect property syntax
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jun 14 04:46:43 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12921
Issue ID: 12921
Summary: Module std.getopt does not respect property syntax
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: sfrijters at gmail.com
Compiling some of my code with -property flag set results in
/usr/local/stow/dmd/include/d2/std/getopt.d(588): Error: not a property
splitter(val, arraySep).map!((a) => to!E(a))
/usr/local/stow/dmd/include/d2/std/getopt.d(441): Error: template instance
std.getopt.handleOption!(RunnableTests[]*) error instantiating
/usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from
here: getoptImpl!(string, RunnableTests[]*, string, bool*, string,
VerbosityLevel*, string, bool*, string, bool*)
/usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from
here: getoptImpl!(string, string*, string, RunnableTests[]*, string, bool*,
string, VerbosityLevel*, string, bool*, string, bool*)
/usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from
here: getoptImpl!(string, string[]*, string, string*, string, RunnableTests[]*,
string, bool*, string, VerbosityLevel*, string, bool*, string, bool*)
/usr/local/stow/dmd/include/d2/std/getopt.d(392): instantiated from
here: getoptImpl!(string, bool*, string, string[]*, string, string*, string,
RunnableTests[]*, string, bool*, string, VerbosityLevel*, string, bool*,
string, bool*)
It looks like the call to map should have a second set of parens?
--
More information about the Digitalmars-d-bugs
mailing list