mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
workaround arrayWith issues (#23230)
I'm working on it, but it's quite tricky. I will fix it soon
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user