summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2016-02-15 08:46:36 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2016-02-15 08:47:31 +0000
commitbb7f23084e2a886f5b48442458d33b43c4628b3c (patch)
tree41311ad7b6045111e5cc8a9a736585a8db2c6ffa /testsuite/tests
parent18cd712427182e76d38047860ee3e26799bc3fe2 (diff)
downloadhaskell-bb7f23084e2a886f5b48442458d33b43c4628b3c.tar.gz
Comments only
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/typecheck/should_fail/T11541.hs8
-rw-r--r--testsuite/tests/typecheck/should_fail/T11541.stderr2
-rw-r--r--testsuite/tests/typecheck/should_fail/all.T1
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T11541.hs b/testsuite/tests/typecheck/should_fail/T11541.hs
new file mode 100644
index 0000000000..56f41f35db
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T11541.hs
@@ -0,0 +1,8 @@
+module T11541 where
+
+g :: Ord k => k -> v -> ()
+g k v = ()
+
+f x y =
+ let m = min x y
+ in g m foo
diff --git a/testsuite/tests/typecheck/should_fail/T11541.stderr b/testsuite/tests/typecheck/should_fail/T11541.stderr
new file mode 100644
index 0000000000..5669c9cd9e
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T11541.stderr
@@ -0,0 +1,2 @@
+
+T11541.hs:8:12: error: Variable not in scope: foo
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index bf8d7c73f5..69df866270 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -406,3 +406,4 @@ test('T11355', normal, compile_fail, [''])
test('T11464', normal, compile_fail, [''])
test('T11473', expect_broken(11473), compile_fail, [''])
test('T11563', normal, compile_fail, [''])
+test('T11541', normal, compile_fail, [''])