tuple1.carbon 305 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 x: Int = (1);
  6. var t2: (Int,Int) = (5, 2);
  7. t2[0] = 3;
  8. return t2[0] - t2[1] - x;
  9. }