Skip to content

Commit

Permalink
Merge pull request #5893 from JinShil/fix_12625
Browse files Browse the repository at this point in the history
Issue 12625 - [scope] [DIP1000] implicit slicing of RValue static array should be illegal
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Nov 29, 2017
2 parents 6926d7d + f037231 commit a3bbaed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/digest/sha.d
Expand Up @@ -1190,11 +1190,11 @@ auto sha512_256Of(T...)(T data)
{
string a = "Mary has ", b = "a little lamb";
int[] c = [ 1, 2, 3, 4, 5 ];
string d = toHexString(sha1Of(a, b, c));
auto d = toHexString(sha1Of(a, b, c));
version(LittleEndian)
assert(d == "CDBB611D00AC2387B642D3D7BDF4C3B342237110", d);
assert(d[] == "CDBB611D00AC2387B642D3D7BDF4C3B342237110", d);
else
assert(d == "A0F1196C7A379C09390476D9CA4AA11B71FD11C8", d);
assert(d[] == "A0F1196C7A379C09390476D9CA4AA11B71FD11C8", d);
}

/**
Expand Down

0 comments on commit a3bbaed

Please sign in to comment.