Skip to content

Commit

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

* register echoBinSafe

* add output
  • Loading branch information
ringabout authored Aug 24, 2022
1 parent e832fea commit 12f23d5
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 12f23d5

Please sign in to comment.