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

.save needs to be @property otherwise isForwardRange fails. #1080

Merged
merged 1 commit into from
Jan 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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