mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSystem (#20194)
* register echoBinSafe * add output
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user