Merge pull request #6817 from nim-lang/fixes-6223

Fixes #6223.
This commit is contained in:
Dominik Picheta 2017-11-29 00:32:07 +00:00 • committed by GitHub
commit 5a58caa9c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 7 deletions

View file

@ -50,6 +50,10 @@ proc test_string_slice() =
s[2..0] = numbers
doAssert s == "ab1234567890cdefghijklmnopqrstuvwxyz"
# bug #6223
doAssertRaises(IndexError):
discard s[0..999]
echo("OK")
test_string_slice()