summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/LinearErrOrigin.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/linear/should_fail/LinearErrOrigin.hs')
-rw-r--r--testsuite/tests/linear/should_fail/LinearErrOrigin.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_fail/LinearErrOrigin.hs b/testsuite/tests/linear/should_fail/LinearErrOrigin.hs
new file mode 100644
index 0000000000..1eeb149959
--- /dev/null
+++ b/testsuite/tests/linear/should_fail/LinearErrOrigin.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE LinearTypes #-}
+module LinearErrOrigin where
+
+-- The error message should mention "arising from multiplicity of x".
+
+foo :: (a # p -> b) -> a # q -> b
+foo f x = f x