getType does not work anymore on a typedesc #4462

Closed
flyx opened this Issue Jul 7, 2016 · 0 comments

Projects

None yet

1 participant

@flyx
Contributor
flyx commented Jul 7, 2016
import macros

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

static:
  foo(int)

Fails with:

stack trace: (most recent call last)
test1.nim(11)            test1
test1.nim(8)             foo
test1.nim(8, 15) Error: node has no type

This has worked in 0.14.2.

@flyx flyx referenced this issue in flyx/NimYAML Jul 7, 2016
Closed

Library is broken on devel #20

@Araq Araq added a commit that closed this issue Jul 8, 2016
@Araq Araq fixes #4462 857b0c8
@Araq Araq closed this in 857b0c8 Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment