We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class Foo { public: static Foo operator+(Foo a, Foo b) { ... } static Foo operator-(Foo a) { ... } }
public class Foo { public static Foo operator+(Foo a, Foo b) { ... } public static Foo operator-(Foo a) { ... } }
class Foo { operator fun plus(other Foo): Foo { ... } operator fun unaryMinus(): Foo { ... } }
class Foo: def __add__(self, other): ...
type Foo struct {...} func (a Foo) + (b Foo) Foo { ... } func -(a Foo) Foo { ... }