diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2019-05-29 18:11:03 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-29 12:11:03 +0200 |
commit | 6904f323aa61b931061c49ab5e6dd8f03c6f4410 (patch) | |
tree | a9c2e13cef9c80a54f90fabdfa8b45d2858364ba /tests/manyloc | |
parent | 13505c3be2aa8f41767958770bf7fe9b49d66914 (diff) | |
download | Nim-6904f323aa61b931061c49ab5e6dd8f03c6f4410.tar.gz |
Fixed #9762 (#11296)
Diffstat (limited to 'tests/manyloc')
-rw-r--r-- | tests/manyloc/standalone/barebone.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manyloc/standalone/barebone.nim b/tests/manyloc/standalone/barebone.nim index 0b38616b2..487f6da65 100644 --- a/tests/manyloc/standalone/barebone.nim +++ b/tests/manyloc/standalone/barebone.nim @@ -11,3 +11,6 @@ proc printf(frmt: cstring) {.varargs, header: "<stdio.h>", cdecl.} var x = 0 inc x printf("hi %ld\n", x+4777) + +proc substr(a: string): string = a[0 .. 3] # This should compile. See #9762 +const a = substr("foobar") |