mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Fix issue 6888.
This commit is contained in:
parent
276c84c574
commit
fe1c21d04d
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ void handleOption(R)(string option, R receiver, ref string[] args,
|
|||
enum isDelegateWithLessThanTwoParameters =
|
||||
is(typeof(receiver) == delegate) &&
|
||||
!is(typeof(receiver("", "")));
|
||||
if (!isDelegateWithLessThanTwoParameters && !val && !incremental) {
|
||||
if (!isDelegateWithLessThanTwoParameters && !(val.length) && !incremental) {
|
||||
// Eat the next argument too. Check to make sure there's one
|
||||
// to be eaten first, though.
|
||||
enforce(i < args.length,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue