mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
11 lines
198 B
Nim
11 lines
198 B
Nim
import std/[tables, hashes]
|
|
|
|
|
|
let t = ()
|
|
var a = toTable({t:t})
|
|
del(a,t)
|
|
let b = default(typeof(a))
|
|
|
|
doAssert a==b , "tables are not equal"
|
|
doAssert hash(a) == hash(b), "table hashes are not equal"
|