tuple3.carbon 279 B

12345678
  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() -> i32 {
  5. var t: (i32, .x = i32) = (3, .x = 2);
  6. return t.x + 1 - t[0];
  7. }