Skip to content

Commit

Permalink
fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSy…
Browse files Browse the repository at this point in the history
…stem (nim-lang#20194)

* register echoBinSafe

* add output
  • Loading branch information
ringabout authored and capocasa committed Mar 31, 2023
1 parent 6fa4394 commit b37222b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3147,6 +3147,8 @@ when not defined(nimPreviewSlimSystem):
{.deprecated: "io is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/syncio`".}
import std/syncio
export syncio
else:
import std/syncio

when not defined(createNimHcr) and not defined(nimscript):
include nimhcr
Expand Down
6 changes: 6 additions & 0 deletions tests/system/tslimsystem.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
discard """
output: "123"
matrix: "-d:nimPreviewSlimSystem"
"""

echo 123

0 comments on commit b37222b

Please sign in to comment.