summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T13068a.hs
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2017-03-01 00:11:43 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2017-03-02 15:59:02 -0800
commitbba004f2a0642d3bb8c8876543aaa1a48a2f9a43 (patch)
treedbf421874c9e5ae537652851006c2b38144acd72 /testsuite/tests/typecheck/should_fail/T13068a.hs
parentdf919fb21c951c1892bd96d9e6306ce1bec3daa9 (diff)
downloadhaskell-bba004f2a0642d3bb8c8876543aaa1a48a2f9a43.tar.gz
Prevent users from defining instances for abstract classes.
Summary: Fixes #13068. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3254
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T13068a.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T13068a.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T13068a.hs b/testsuite/tests/typecheck/should_fail/T13068a.hs
new file mode 100644
index 0000000000..fb7bda627a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T13068a.hs
@@ -0,0 +1,3 @@
+module T13068a where
+import {-# SOURCE #-} T13068
+instance C Int where