`expandMacros` with its conversion to `typed` is really fragile with today's 
compiler. Instead use this to see what's going on:
    
    
    import future
    import macros
    
    macro decDumbType(): untyped =
      result =
        macros.quote do:
          type Dumb = ref object of RootObj
            contents: int
          method frobnicate(this: Dumb) {.base.} =
            echo "frobnicating!"
      echo repr result
    
    decDumbType()
    

Reply via email to