mirror of
https://github.com/dlang/phobos.git
synced 2025-05-10 14:08:32 +03:00
Merge pull request #1455 from 9rnsr/enforceProp
More parenthesis fix for property enforcement
This commit is contained in:
commit
fde2d19dcc
3 changed files with 3 additions and 3 deletions
|
@ -826,7 +826,7 @@ unittest // 8435 & 10118
|
|||
aa[BigInt(123)] = 321;
|
||||
assert(aa[BigInt(123)] == 321);
|
||||
|
||||
auto keys = aa.byKey();
|
||||
auto keys = aa.byKey;
|
||||
assert(keys.front == BigInt(123));
|
||||
keys.popFront();
|
||||
assert(keys.empty);
|
||||
|
|
|
@ -924,7 +924,7 @@ immutable(ElementEncodingType!(ElementType!Range))[]
|
|||
// If this is a forward range, we can pre-calculate a maximum length.
|
||||
static if (isForwardRange!Range)
|
||||
{
|
||||
auto segments2 = segments.save();
|
||||
auto segments2 = segments.save;
|
||||
size_t precalc = 0;
|
||||
foreach (segment; segments2) precalc += segment.length + 1;
|
||||
}
|
||||
|
|
|
@ -2925,7 +2925,7 @@ public:
|
|||
else version (Posix)
|
||||
{
|
||||
_ctimeval tv;
|
||||
tv.tv_sec = to!(typeof(tv.tv_sec ))(value.total!"seconds"());
|
||||
tv.tv_sec = to!(typeof(tv.tv_sec ))(value.total!"seconds");
|
||||
tv.tv_usec = to!(typeof(tv.tv_usec))(value.fracSec.usecs);
|
||||
setOption(level, option, (&tv)[0 .. 1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue