Build with -dip1000. Fix #85

This commit is contained in:
2019-04-15 06:42:57 +02:00
parent 9814e5ad8e
commit f66935f40d
12 changed files with 24 additions and 17 deletions

View File

@ -12,5 +12,6 @@
],
"importPaths": [
"."
]
],
"dflags": ["-dip1000"]
}

View File

@ -307,14 +307,14 @@ struct ErrorCode
*
* Returns: $(D_KEYWORD this).
*/
ref ErrorCode opAssign(const ErrorNo that) @nogc nothrow pure @safe
ref ErrorCode opAssign(const ErrorNo that) return @nogc nothrow pure @safe
{
this.value_ = that;
return this;
}
/// ditto
ref ErrorCode opAssign(const ErrorCode that) @nogc nothrow pure @safe
ref ErrorCode opAssign(const ErrorCode that) return @nogc nothrow pure @safe
{
this.value_ = that.value_;
return this;