diff options
| author | Paul Steckler | 2017-05-25 11:03:18 -0400 |
|---|---|---|
| committer | Paul Steckler | 2017-05-25 11:03:18 -0400 |
| commit | ec57e7bedbd6719ad1b03800d6a8d7efd1b75ee4 (patch) | |
| tree | 2be820af23eedfd121ef51cbfac788b8ccd9bf16 /test-suite | |
| parent | a2d43679596d86033ac52c16ac137d8cf2a06412 (diff) | |
Bug 5546, qualify datatype constructors when needed
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/output/ShowMatch.out | 8 | ||||
| -rw-r--r-- | test-suite/output/ShowMatch.v | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/output/ShowMatch.out b/test-suite/output/ShowMatch.out new file mode 100644 index 0000000000..e5520b8dfa --- /dev/null +++ b/test-suite/output/ShowMatch.out @@ -0,0 +1,8 @@ +match # with + | f => + end + +match # with + | A.f => + end + diff --git a/test-suite/output/ShowMatch.v b/test-suite/output/ShowMatch.v new file mode 100644 index 0000000000..02b7eada83 --- /dev/null +++ b/test-suite/output/ShowMatch.v @@ -0,0 +1,13 @@ +(* Bug 5546 complained about unqualified constructors in Show Match output, + when qualification is needed to disambiguate them +*) + +Module A. + Inductive foo := f. + Show Match foo. (* no need to disambiguate *) +End A. + +Module B. + Inductive foo := f. + (* local foo shadows A.foo, so constructor "f" needs disambiguation *) + Show Match A.foo. |
