| 1 |
Module Import A. |
| 2 |
Module B. |
| 3 |
Abbreviation x := tt. |
| 4 |
End B. |
| 5 |
End A. |
| 6 |
Check B.x. (* should say tt *) |
| 7 |
|
| 8 |
Module A'. |
| 9 |
Module B'. |
| 10 |
#[global] Abbreviation x := tt. |
| 11 |
End B'. |
| 12 |
End A'. |
| 13 |
Check tt. (* should say A'.B'.x *) |
| 14 |
|
| 15 |
Import B. |
| 16 |
Check tt. (* should say x *) |
| 17 |
|
| 18 |
Import A'.B'. |
| 19 |
Check tt. |
| 20 |
(* should say B.x (qualified because "x" is short name for B'.x, but |
| 21 |
B'.x not used for printing because the printing rule didn't get |
| 22 |
replayed by Import so is still shadowed by B.x) *) |
| 23 |
|
| 24 |
Disable Notation B.x. |
| 25 |
|
| 26 |
Check tt. |
| 27 |
(* should say x *) |