Revert "fixes #22923; fixes =dup issues (#23182)"

This reverts commit fbb9ce4d5c.
This commit is contained in:
narimiran
2024-04-23 06:57:09 +02:00
parent f44c49c5bd
commit 33817f2c30
5 changed files with 2 additions and 49 deletions

View File

@@ -2831,5 +2831,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)