summaryrefslogtreecommitdiff
path: root/tests/lean/Matches.lean
blob: 3e3a558bfa1597196689a394f0059e30c3a7fc12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS
-- [matches]
import Base
open Primitives

namespace matches

/- [matches::match_u32]:
   Source: 'tests/src/matches.rs', lines 4:0-4:27 -/
def match_u32 (x : U32) : Result U32 :=
  match x with
  | 0#u32 => Result.ok 0#u32
  | 1#u32 => Result.ok 1#u32
  | _ => Result.ok 2#u32

end matches