Skip to content

Commit

Permalink
Removed extra spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodovico Giaretta authored and Lodovico Giaretta committed Jul 24, 2016
1 parent 33f813a commit a44527a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ template isInnerClass(T)
if (is(T == class))
{
import std.meta : staticIndexOf;

enum isInnerClass = __traits(isSame, typeof(T.outer), __traits(parent, T))
&& (staticIndexOf!(__traits(allMembers, T), "outer") == -1);
}
Expand All @@ -2041,15 +2041,15 @@ template isInnerClass(T)
int outer;
}
static assert(!isInnerClass!C);

class Outer1
{
class Inner
{
}
}
static assert(isInnerClass!(Outer1.Inner));

class Outer2
{
class Inner
Expand Down

0 comments on commit a44527a

Please sign in to comment.