fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSystem (#20194)
* register echoBinSafe * add output
This commit is contained in:
parent
e832fea160
commit
12f23d5ae8
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
tests/system/tslimsystem.nim
Normal file
6
tests/system/tslimsystem.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discard """
|
||||
output: "123"
|
||||
matrix: "-d:nimPreviewSlimSystem"
|
||||
"""
|
||||
|
||||
echo 123
|
||||
Loading…
Add table
Add a link
Reference in a new issue