fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSystem (#20194)

* register echoBinSafe

* add output
This commit is contained in:
ringabout
2022-08-24 19:32:11 +08:00
committed by GitHub
parent e832fea160
commit 12f23d5ae8
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,6 @@
discard """
output: "123"
matrix: "-d:nimPreviewSlimSystem"
"""
echo 123