match_any_int.carbon 290 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;
  6. match (t) {
  7. case x: Int =>
  8. return x - 5;
  9. }
  10. }