dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

Slicing a string as a parameter fails. #349

Closed dplassgit closed 1 month ago

dplassgit commented 1 month ago
f:proc(s:string) { println s[0:2] }
f('first')

should print fi but it prints the empty string.