fix sloppy test for private protection
This commit is contained in:
parent
437b8e169d
commit
2b8ba6ffca
|
@ -128,7 +128,7 @@ public:
|
||||||
!d.functionDeclaration)
|
!d.functionDeclaration)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
import std.algorithm.iteration: filter;
|
import std.algorithm.iteration : filter;
|
||||||
import std.algorithm.searching : find;
|
import std.algorithm.searching : find;
|
||||||
import std.range.primitives : empty;
|
import std.range.primitives : empty;
|
||||||
|
|
||||||
|
@ -152,9 +152,7 @@ public:
|
||||||
.empty;
|
.empty;
|
||||||
|
|
||||||
bool isPrivate;
|
bool isPrivate;
|
||||||
if (_private[$-1] && isPrivateOnce)
|
if (isPrivateOnce)
|
||||||
isPrivate = true;
|
|
||||||
else if (!_private[$-1] && isPrivateOnce)
|
|
||||||
isPrivate = true;
|
isPrivate = true;
|
||||||
else if (_private[$-1] && !changeProtectionOnce)
|
else if (_private[$-1] && !changeProtectionOnce)
|
||||||
isPrivate = true;
|
isPrivate = true;
|
||||||
|
|
Loading…
Reference in New Issue