diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc194.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc194.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc194.hs b/testsuite/tests/typecheck/should_compile/tc194.hs new file mode 100644 index 0000000000..07b0ed4f02 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc194.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE Rank2Types, ScopedTypeVariables #-} + +-- Tests the special case of +-- non-recursive, function binding, +-- with no type signature + +module ShouldCompile where + +f = \ (x :: forall a. a->a) -> (x True, x 'c') + |