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

Commit

Permalink
fixup! add assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
aG0aep6G committed Jul 24, 2017
1 parent 6a96fbe commit 920bc5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/atomic.d
Expand Up @@ -39,7 +39,9 @@ private
alias S = shared T;

static if (is(S U == shared U)) {}
else static assert(false, "S should be shared.");
else static assert(false, "Should never be triggered. The `static " ~
"if` declares `U` as the unshared version of the shared type "
"`S`. `S` is explicitly declared as shared, so getting `U` " ~ "should always work.");

static if (is(S : U))
alias TailShared = U;
Expand Down

0 comments on commit 920bc5a

Please sign in to comment.