tuple_match.carbon 311 B

1234567891011
  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 t: auto = (5, 2);
  6. match (t) {
  7. case (a: auto, b: auto) =>
  8. return a + b - 7;
  9. }
  10. }