diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-01-15 17:06:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 17:06:43 +0800 |
commit | bd72c4c7298ce7f5834935aec4513ac35381490c (patch) | |
tree | 3c45389a21055d32b0d277e20df0f249803e053c /lib | |
parent | ab4278d2179639f19967431a7aa1be858046f7a7 (diff) | |
download | Nim-bd72c4c7298ce7f5834935aec4513ac35381490c.tar.gz |
remove unnecessary workaround from `arrayWith` (#23208)
The problem was fixed by https://github.com/nim-lang/Nim/pull/23195
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 38e372897..0602d8fa4 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) |