Nim/tests/vm/tvmmisc.nim

6 lines
100 B
Nim

# 4412
proc default[T](t: typedesc[T]): T {.inline.} = discard
static:
var x = default(type(0))