mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
fix @ for openarray on nimscript [backport:2.2] (#25641)
Even on nimscript, the `else` branch of the `when nimvm` below compiles
and gives an "undeclared identifier: copyMem" error. Regression since
#25064.
(cherry picked from commit 6f85d348f4)
This commit is contained in:
@@ -143,3 +143,7 @@ proc discardableCall(cmd: string): int {.discardable.} =
|
||||
result = 123
|
||||
|
||||
discardableCall "echo hi"
|
||||
|
||||
block:
|
||||
let a = "abc"
|
||||
doAssert @a == @['a', 'b', 'c']
|
||||
|
||||
Reference in New Issue
Block a user