mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 17:28:11 +00:00
Replace the binary `Operation` interfaces with the `OperationWith(T:! type)` interfaces described in the design, and add a `Result` associated type for both unary and binary operations. Update the `impl`s in the prelude for integer types to use the new form, including supporting implicit conversion of either operand. I've tried to split this PR up into commits focused on distinct changes for review convenience. It may be simplest to review it one commit at a time.
Run tests
Tests of the Run entrypoint are in separate files because Run needs to be in
Main//default, and there can only be one such library per compile.