parent
13505c3be2
commit
6904f323aa
2 changed files with 30 additions and 28 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue