You need to define a += proc
    
    
    proc `+=`*(f: var Foo, val: int) {.inline.} =
      f.bar += val
    
    
    Run

Reply via email to