From ea2e1f83636afda1611eaaf18f843639ddded894 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 15 Jan 2024 06:54:48 +0000 Subject: [PATCH] remove unnecessary workaround from `arrayWith` --- lib/system.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index 38e3728974064..0602d8fa42714 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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)