Sorry to hear it breaks for you, it works on my compiler.
But give quote + getAst at try, it's recommended over quote-do anyway, if I
recall.
import macros
macro decDumbType(): untyped =
let sym = genSym(nnkType, "Dumb")
template decl(ty) =
type Dumb = ref object of RootObj
contents: int
method frobnicate(this: Dumb) {.base.} =
echo "frobnicating!"
result = getAst(decl(sym))
echo repr result
decDumbType()
