summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-12-08 16:32:55 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-08 18:44:55 -0500
commit6889400bd5ce6b481844fe5cfa7c9256ff5cd52f (patch)
treeb955d4f3842f84d6def5db8b69445c6c27ae111d /testsuite/tests/ghci
parentc766d53f3d8b58567b3bacf36fd7b6509656b1fc (diff)
downloadhaskell-6889400bd5ce6b481844fe5cfa7c9256ff5cd52f.tar.gz
testsuite: Add test for #10249
Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2794 GHC Trac Issues: #10249
Diffstat (limited to 'testsuite/tests/ghci')
-rw-r--r--testsuite/tests/ghci/scripts/T10249.script1
-rw-r--r--testsuite/tests/ghci/scripts/T10249.stderr8
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
3 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T10249.script b/testsuite/tests/ghci/scripts/T10249.script
new file mode 100644
index 0000000000..c9cdc63b07
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T10249.script
@@ -0,0 +1 @@
+_ \ No newline at end of file
diff --git a/testsuite/tests/ghci/scripts/T10249.stderr b/testsuite/tests/ghci/scripts/T10249.stderr
new file mode 100644
index 0000000000..ade995051e
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T10249.stderr
@@ -0,0 +1,8 @@
+
+<interactive>:1:1: error:
+ • Found hole: _ :: t
+ Where: ‘t’ is a rigid type variable bound by
+ the inferred type of it :: t at <interactive>:1:1
+ • In the expression: _
+ In an equation for ‘it’: it = _
+ • Relevant bindings include it :: t (bound at <interactive>:1:1)
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 53cb1e3336..b89d1c48fd 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -268,3 +268,4 @@ test('T12523', normal, ghci_script, ['T12523.script'])
test('T12024', normal, ghci_script, ['T12024.script'])
test('T12447', expect_broken(12447), ghci_script, ['T12447.script'])
test('T12550', expect_broken(12550), ghci_script, ['T12550.script'])
+test('T10249', normal, ghci_script, ['T10249.script'])