tuple5.6c 326 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. // Test the that field order matters for tuples.
  5. fn main() -> Int {
  6. var (.x = Int, .y = Int): t = (.y = 2, .x = 3);
  7. return 0;
  8. }