summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc219.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc219.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/tc219.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc219.hs b/testsuite/tests/typecheck/should_compile/tc219.hs
new file mode 100644
index 0000000000..638f1b6e1e
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/tc219.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE ImplicitParams, NoMonomorphismRestriction #-}
+
+module ShouldCompile where
+
+-- c.f. tc218.hs, only no type signature here
+-- Instead, the NoMonomorphismRestriction language
+bar = show ?c
+
+foo = let { ?c = 'x' } in bar