summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/T18731.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/linear/should_compile/T18731.hs')
-rw-r--r--testsuite/tests/linear/should_compile/T18731.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_compile/T18731.hs b/testsuite/tests/linear/should_compile/T18731.hs
new file mode 100644
index 0000000000..c7899efb54
--- /dev/null
+++ b/testsuite/tests/linear/should_compile/T18731.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE LinearTypes #-}
+module T18731 where
+
+f :: a #-> b
+f x = undefined x