workaround arrayWith issues (#23230)

I'm working on it, but it's quite tricky. I will fix it soon
This commit is contained in:
ringabout
2024-01-19 04:13:39 +08:00
committed by GitHub
parent fe98032d3d
commit 8a38880ef7

View File

@@ -2928,4 +2928,5 @@ proc arrayWith*[T](y: T, size: static int): array[size, T] {.raises: [].} =
when nimvm:
result[i] = y
else:
result[i] = `=dup`(y)
# TODO: fixme it should be `=dup`
result[i] = y