summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/LinearPolyDollar.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/linear/should_compile/LinearPolyDollar.hs')
-rw-r--r--testsuite/tests/linear/should_compile/LinearPolyDollar.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_compile/LinearPolyDollar.hs b/testsuite/tests/linear/should_compile/LinearPolyDollar.hs
new file mode 100644
index 0000000000..7d14351cfc
--- /dev/null
+++ b/testsuite/tests/linear/should_compile/LinearPolyDollar.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE LinearTypes #-}
+
+module LinearPolyDollar where
+
+-- The goal of this test is to ensure that the special typing rule of ($) plays
+-- well with multiplicity-polymorphic functions
+
+data F = F Bool
+
+x = F $ True