fix sloppy test for private protection

This commit is contained in:
Basile Burg 2017-01-17 12:08:35 +01:00
parent 437b8e169d
commit 2b8ba6ffca
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 2 additions and 4 deletions

View File

@ -128,7 +128,7 @@ public:
!d.functionDeclaration)
return;
import std.algorithm.iteration: filter;
import std.algorithm.iteration : filter;
import std.algorithm.searching : find;
import std.range.primitives : empty;
@ -152,9 +152,7 @@ public:
.empty;
bool isPrivate;
if (_private[$-1] && isPrivateOnce)
isPrivate = true;
else if (!_private[$-1] && isPrivateOnce)
if (isPrivateOnce)
isPrivate = true;
else if (_private[$-1] && !changeProtectionOnce)
isPrivate = true;