diff options
author | Son Ho | 2023-08-18 10:44:01 +0200 |
---|---|---|
committer | Son Ho | 2023-08-18 10:44:01 +0200 |
commit | a9c256fe95523842a1ff025e73f6e9ce7c2db38a (patch) | |
tree | 719ddcd09d212c4c69c6d406ee6e024c0ef277ef /tests/lean | |
parent | 26c25bf375742cf4d5a0ab160b9646e90c067f18 (diff) |
Add tests which use const generics as values
Diffstat (limited to 'tests/lean')
-rw-r--r-- | tests/lean/Array/Funs.lean | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lean/Array/Funs.lean b/tests/lean/Array/Funs.lean index ad737dca..8d10c660 100644 --- a/tests/lean/Array/Funs.lean +++ b/tests/lean/Array/Funs.lean @@ -166,6 +166,10 @@ def index_index_array Array.index_shared (Array U32 (Usize.ofInt 32)) (Usize.ofInt 32) s i Array.index_shared U32 (Usize.ofInt 32) a j +/- [array::const_gen_ret]: forward function -/ +def const_gen_ret (N : Usize) : Result Usize := + Result.ret N + /- [array::update_update_array]: forward function -/ def update_update_array (s : Array (Array U32 (Usize.ofInt 32)) (Usize.ofInt 32)) (i : Usize) |