diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc121.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc121.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc121.hs b/testsuite/tests/typecheck/should_compile/tc121.hs new file mode 100644 index 0000000000..9f25183e7a --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc121.hs @@ -0,0 +1,18 @@ +{-# LANGUAGE ImplicitParams #-} + +-- !!! Implicit Parameters + +-- If the implicit param isn't recognized as a PredType, x and y +-- will be inferred to have two params instead of one. + +module ShouldCompile where + +x () = ?wibble + +y () = x () + +same :: a -> a -> b +same x y = undefined + +a () = same x id +b () = same y id |