blob: 6aa3df98307dd1b32ddd9d1ea57939f00e1db053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Record test := build { field : nat }.
Record test_r := build_r { field_r : nat }.
Record test_c := build_c { field_c : nat }.
Add Printing Constructor test_c.
Add Printing Record test_r.
Set Printing Records.
Check build 5.
Check {| field := 5 |}.
Check build_r 5.
Check build_c 5.
Unset Printing Records.
Check build 5.
Check {| field := 5 |}.
Check build_r 5.
Check build_c 5.
|