Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
spec: unspecified or unclear behavior for arithmetic operators on named types #8289
It seems that the following code is not fully specified: type MyType int [...] var m MyType m += 0 I understand that 0 being an untype constant, it can be used in a binary operation with a `MyType` operand. However, I cannot find what specifies that binary operations can be used on operands of type `MyType` ("Arithmetic operators" paragraph isn't really clear on that).