Merge pull request #1455 from 9rnsr/enforceProp

More parenthesis fix for property enforcement
This commit is contained in:
Jonathan M Davis 2013-08-07 13:12:02 -07:00
commit fde2d19dcc
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;
}

View file

@ -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]);
}