summary refs log tree commit diff stats
path: root/tests/vm/tvmmisc.nim
blob: b7112b09997d1c7e3cd7a1739bfefa2a596e9663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# bug #4462
import macros

proc foo(t: typedesc) {.compileTime.} =
  echo getType(t).treeRepr

static:
  foo(int)

# #4412
proc default[T](t: typedesc[T]): T {.inline.} = discard

static:
  var x = default(type(0))