diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/ghci/scripts/T12024.script | 8 | ||||
-rw-r--r-- | testsuite/tests/ghci/scripts/T12024.stdout | 1 | ||||
-rwxr-xr-x | testsuite/tests/ghci/scripts/all.T | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T12024.script b/testsuite/tests/ghci/scripts/T12024.script new file mode 100644 index 0000000000..4e648634c2 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T12024.script @@ -0,0 +1,8 @@ +:set -XPatternSynonyms -XGADTs +data A a where X :: A [x] + +pattern X' = X + +-- This should render the equality with ~ despite the pattern internally using +-- GHC.Prim.~#. +:info X' diff --git a/testsuite/tests/ghci/scripts/T12024.stdout b/testsuite/tests/ghci/scripts/T12024.stdout new file mode 100644 index 0000000000..e01f43a511 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T12024.stdout @@ -0,0 +1 @@ +pattern X' :: () => a ~ [x] => A a -- Defined at <interactive>:4:1 diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T index 4927abcb97..6dcc6b7adf 100755 --- a/testsuite/tests/ghci/scripts/all.T +++ b/testsuite/tests/ghci/scripts/all.T @@ -265,3 +265,4 @@ test('T12091', [expect_broken(12091), extra_run_opts('-fobject-code')], ghci_script, ['T12091.script']) test('T12523', normal, ghci_script, ['T12523.script']) +test('T12024', normal, ghci_script, ['T12024.script']) |