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
commit 12f23d5ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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