test-suite/success/global_inst.v
raw| 1 | |
| 2 | Class Foo := foo : nat. |
| 3 | |
| 4 | Module X. |
| 5 | Module Y. |
| 6 | Global Instance n_0 : Foo := 0. |
| 7 | End Y. |
| 8 | End X. |
| 9 | |
| 10 | Definition inferred_0 : nat := foo. |
| 11 | |
| 12 | Check eq_refl : inferred_0 = 0. |
| 13 | |
| 14 | Instance n_1 : Foo := 1. |
| 15 | |
| 16 | Definition inferred_1 : nat := foo. |
| 17 | |
| 18 | Check eq_refl : inferred_1 = 1. |
| 19 | |
| 20 | Import X. |
| 21 | |
| 22 | Definition inferred_1' : nat := foo. |
| 23 | |
| 24 | Check eq_refl : inferred_1' = 1. |
| 25 | |
| 26 | Import Y. |
| 27 | |
| 28 | Definition inferred_1'' : nat := foo. |
| 29 | |
| 30 | Check eq_refl : inferred_1'' = 1. |