Hi. Can someone tell me what is happening here. the following code works, but
when i uncomment converter (which is needed for another task) code does not
compile
>
> #converter toString(a: seq[byte]): string {.inline.} = cast[ptr
> string](a.addr)[]
>
> var query = @[byte 1,2,3]
> query[0..1] = @[byte 8,8]
> echo query # outputs: @[8, 8, 3]
>
>
> Run
with converter:
>
> test.nim(4, 6) template/generic instantiation of `[]=` from here
> D:\Programm\Nim\Nim-devel\lib\system\indices.nim(158, 15)
> template/generic instantiation of `spliceImpl` from here
> D:\Programm\Nim\Nim-devel\lib\system\indices.nim(68, 56) Error:
> 's[i`gensym0]' cannot be assigned to
>
>
> Run
in this small example i don't even use strings, so why it interferes with
assignment to a slice of sequence?
>
> nim -v
> Nim Compiler Version 2.1.1 [Windows: amd64]
> Compiled at 2023-11-19
> Copyright (c) 2006-2023 by Andreas Rumpf
>
> git hash: cecaf9c56b1240a44a4de837e03694a0c55ec379
> active boot switches: -d:release
>
>
> Run