Skip to content

Commit 257fd14

Browse files
committed
use nimPreviewSlimSystem, test stdlib category
1 parent 22d321a commit 257fd14

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

lib/pure/asyncfutures.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import os, tables, strutils, times, heapqueue, options, deques, cstrutils
1111

1212
import system/stacktraces
1313

14+
when defined(nimPreviewSlimSystem):
15+
import std/objectdollar # for StackTraceEntry
16+
1417
# TODO: This shouldn't need to be included, but should ideally be exported.
1518
type
1619
CallbackFunc = proc () {.closure, gcsafe.}

lib/system/dollars.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ proc `$`*[T: tuple](x: T): string =
7979
## $() == "()"
8080
tupleObjectDollar(result, x)
8181

82+
when not defined(nimPreviewSlimSystem):
83+
import std/objectdollar
84+
export objectdollar
85+
8286
proc collectionToString[T](x: T, prefix, separator, suffix: string): string =
8387
result = prefix
8488
var firstElement = true

tests/stdlib/toptions.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ discard """
44

55
import std/[json, options]
66

7+
when defined(nimPreviewSlimSystem):
8+
import std/objectdollar
9+
710

811
# RefPerson is used to test that overloaded `==` operator is not called by
912
# options. It is defined here in the global scope, because otherwise the test

tests/stdlib/tstrformat.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import genericstrformat
44
import std/[strformat, strutils, times, tables, json]
55

6+
when defined(nimPreviewSlimSystem):
7+
import std/objectdollar
8+
69
proc main() =
710
block: # issue #7632
811
doAssert works(5) == "formatted 5"

0 commit comments

Comments
 (0)