summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T17792.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2020-02-07 15:26:44 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-28 22:03:23 -0500
commit66f5d6d634698ce054a9b9ce0c53ce9682f6f042 (patch)
tree24225b89347cb0f32cff1f3921d71305f5fbdaab /testsuite/tests/typecheck/should_compile/T17792.hs
parentf97d1fb614ff7638d13eb7c552d2a72fce4c613a (diff)
downloadhaskell-66f5d6d634698ce054a9b9ce0c53ce9682f6f042.tar.gz
Improve error handling for VTA + deferred type errors
This fixes #17792 See Note [VTA for out-of-scope functions] in TcExpr
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T17792.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/T17792.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T17792.hs b/testsuite/tests/typecheck/should_compile/T17792.hs
new file mode 100644
index 0000000000..3b18f566c4
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T17792.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TypeApplications #-}
+{-# OPTIONS_GHC -fdefer-type-errors #-}
+
+module T17792 where
+
+class C a where
+ m :: a
+
+instance C Bool where
+ m = notInScope @Word