mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* test removing dollar for objects out of system * test & fixes * fix bootstrap * use nimPreviewSlimSystem, test stdlib category * fix test
15 lines
237 B
Nim
15 lines
237 B
Nim
discard """
|
|
matrix: "-d:nimPreviewSlimSystem"
|
|
"""
|
|
|
|
import std/assertions
|
|
|
|
type Foo = object
|
|
a, b: int
|
|
|
|
let x = Foo(a: 23, b: 45)
|
|
doAssert not compiles($x)
|
|
import std/objectdollar
|
|
doAssert compiles($x)
|
|
doAssert $x == "(a: 23, b: 45)"
|