tuple_assign.6c 288 B

12345678910
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. fn main() -> Int {
  5. var auto: x = 0;
  6. var auto: y = 1;
  7. (x, y) = (5, -5);
  8. return x + y;
  9. }