summary refs log tree commit diff stats
path: root/tests/stdlib/isolation.nim
blob: 6fbadda75c5452eaf37b5bf3860707a956b3f3a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  targets: "c cpp js"
"""

import std/[json, isolation]


proc main() =
  var x: seq[Isolated[JsonNode]]
  x.add isolate(newJString("1234"))

  doAssert $x == """@[(value: "1234")]"""


static: main()
main()