summaryrefslogtreecommitdiff
path: root/tests/lean/Matches.lean
blob: 9233841b608048855cae02da37e46c152a469ae3 (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#scalar => Result.ok 0#u32
  | 1#scalar => Result.ok 1#u32
  | _ => Result.ok 2#u32

end matches