Bug 12921 – Module std.getopt does not respect property syntax
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-06-14T11:46:00Z
Last change time
2014-06-14T18:03:15Z
Assigned to
nobody
Creator
sfrijters
Comments
Comment #0 by sfrijters — 2014-06-14T11:46:43Z
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?