mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
simplify typetraits.nim test (#8193)
This commit is contained in:
committed by
Andreas Rumpf
parent
681d8e0749
commit
426e5c2d1f
@@ -59,9 +59,4 @@ proc supportsCopyMem*(t: typedesc): bool {.magic: "TypeTrait".}
|
||||
|
||||
|
||||
when isMainModule:
|
||||
# echo type(42)
|
||||
import streams
|
||||
var ss = newStringStream()
|
||||
ss.write($type(42)) # needs `$`
|
||||
ss.setPosition(0)
|
||||
doAssert ss.readAll() == "int"
|
||||
doAssert $type(42) == "int"
|
||||
|
||||
Reference in New Issue
Block a user