Is this a restriction or a bug ? 
    
    
    import sugar, strformat
    
    var st = collect(newString) :
      for i in 0..2 :  &">> {i}"
    
    echo st
    #[
    cannot instantiate: 'newString[typeof:
      for i in 0 .. 2:
        var fmtRes_369098797 = newStringOfCap(16)
        add(fmtRes_369098797, ">> ")
        formatValue(fmtRes_369098797, i, "")
        fmtRes_369098797]'; got 1 typeof(s) but expected 0
    ]#
    
    
    Run

Reply via email to