Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1080 from quickfur/issue9119_fwdrange
Browse files Browse the repository at this point in the history
.save needs to be @Property otherwise isForwardRange fails.
  • Loading branch information
schveiguy committed Jan 4, 2015
2 parents 9ec46a6 + 2f86a16 commit 841c9a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/object.di
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ auto byKeyValue(T : Value[Key], Value, Key)(T aa) pure nothrow @nogc @property
cast(Value*)_aaRangeFrontValue(r));
}
void popFront() { _aaRangePopFront(r); }
Result save() { return this; }
@property Result save() { return this; }
}

return Result(_aaRange(cast(void*)aa));
Expand Down
2 changes: 1 addition & 1 deletion src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,7 @@ auto byKeyValue(T : Value[Key], Value, Key)(T aa) pure nothrow @nogc @property
cast(Value*)_aaRangeFrontValue(r));
}
void popFront() { _aaRangePopFront(r); }
Result save() { return this; }
@property Result save() { return this; }
}

return Result(_aaRange(cast(void*)aa));
Expand Down

0 comments on commit 841c9a6

Please sign in to comment.