Skip to content

Commit

Permalink
inout instance field is not allowed in D
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jul 1, 2014
1 parent 0da863b commit 6f5feb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/traits.d
Expand Up @@ -439,7 +439,7 @@ version(unittest)
inout Inner inoutFunc(inout Inner);
shared(const(Inner[string])[]) data;
const Inner delegate(double, string) @safe nothrow deleg;
inout int delegate(inout int) inout inoutDeleg;
inout(int) delegate(inout int) inout inoutDeleg;
Inner function(out double, string) funcPtr;
extern(C) Inner function(double, string) cFuncPtr;

Expand Down Expand Up @@ -779,7 +779,7 @@ unittest
static assert(fqn!(typeof(func)) == format("const(%s[string])(ref %s, scope lazy string) ref", inner_name, inner_name));
static assert(fqn!(typeof(inoutFunc)) == format("inout(%s(inout(%s)))", inner_name, inner_name));
static assert(fqn!(typeof(deleg)) == format("const(%s delegate(double, string) nothrow @safe)", inner_name));
static assert(fqn!(typeof(inoutDeleg)) == "inout(int delegate(inout(int)) inout)");
static assert(fqn!(typeof(inoutDeleg)) == "inout(int) delegate(inout(int)) inout");
static assert(fqn!(typeof(funcPtr)) == format("%s function(out double, string)", inner_name));
static assert(fqn!(typeof(cFuncPtr)) == format("extern(C) %s function(double, string)", inner_name));

Expand Down

0 comments on commit 6f5feb0

Please sign in to comment.