OOlib icon indicating copy to clipboard operation
OOlib copied to clipboard

`self: var T`

Open glassesneo opened this issue 1 year ago • 0 comments

class Dollar(distinct int):
  proc `+=`(other: Dollar) {.varType.} =
    self = self + other

is converted to

type Dollar = distinct int
proc `+=`(self: var Dollar, other: Dollar) =
  self = self + other

glassesneo avatar Mar 05 '24 09:03 glassesneo