diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/th/T20060.hs | 11 | ||||
-rw-r--r-- | testsuite/tests/th/all.T | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/th/T20060.hs b/testsuite/tests/th/T20060.hs new file mode 100644 index 0000000000..cbf78c3215 --- /dev/null +++ b/testsuite/tests/th/T20060.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# OPTIONS_GHC -O2 #-} +module THBug where + +data A +data B + +concat <$> mapM (\_ -> (pure [])) + [ ''A + , ''B + ] diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T index 029353cfc3..90ca816cd8 100644 --- a/testsuite/tests/th/all.T +++ b/testsuite/tests/th/all.T @@ -529,3 +529,4 @@ test('T17804', normal, compile, ['']) test('T19470', only_ways(['ghci']), ghci_script, ['T19470.script']) test('T19737', normal, compile, ['']) test('T19759', normal, compile, ['']) +test('T20060', normal, compile, ['']) |