remove unnecessary workaround from arrayWith (#23208)

The problem was fixed by https://github.com/nim-lang/Nim/pull/23195
This commit is contained in:
ringabout
2024-01-15 17:06:43 +08:00
committed by GitHub
parent ab4278d217
commit bd72c4c729

View File

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