Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #983 from 9rnsr/fix12931
Browse files Browse the repository at this point in the history
Move prefix member function attributes to postfix
  • Loading branch information
yebblies committed Oct 4, 2014
2 parents 7e2a075 + 0bc70a7 commit 205bcad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/exception.d
Expand Up @@ -133,7 +133,7 @@ class FinalizeError : Error
info = ci;
}

@safe override const string toString()
@safe override string toString() const
{
return "An exception was thrown while finalizing an instance of class " ~ info.name;
}
Expand Down Expand Up @@ -216,7 +216,7 @@ class OutOfMemoryError : Error
super( "Memory allocation failed", file, line, next );
}

@trusted override const string toString()
@trusted override string toString() const
{
return msg.length ? (cast()super).toString() : "Memory allocation failed";
}
Expand Down Expand Up @@ -257,7 +257,7 @@ class InvalidMemoryOperationError : Error
super( "Invalid memory operation", file, line, next );
}

@trusted override const string toString()
@trusted override string toString() const
{
return msg.length ? (cast()super).toString() : "Invalid memory operation";
}
Expand Down
2 changes: 1 addition & 1 deletion src/object_.d
Expand Up @@ -1085,7 +1085,7 @@ unittest
{
struct S
{
const bool opEquals(ref const S rhs)
bool opEquals(ref const S rhs) const
{
return false;
}
Expand Down

0 comments on commit 205bcad

Please sign in to comment.