Hi,

Consider this code:
    
    
    import macros
    
    type Something = object
      manyStrings: seq[string]
    
    macro MyMacro(): untyped =
      var something = Something()
      return quote do:
        `something`
    
    let x: Something = MyMacro() # type mismatch: got <array[0..-1, empty]> but 
expected 'seq[string]'
    
    
    Run

[see playground](https://play.nim-lang.org/#ix=2TF0)

Does someone know why this won't work?

It works for objects without `seq[string]`, e.g. 
    
    
    type Something = object
      oneString: string
    
    
    Run

Thanks a lot and best regards, David

Reply via email to