From: lewie Date: Wed, 11 Apr 2001 18:10:16 +0000 (+0000) Subject: [project @ 2001-04-11 18:10:16 by lewie] X-Git-Tag: Approximately_9120_patches~2167 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=dabf228557652cff050924cdc669450c0ece0f76;p=ghc-hetmet.git [project @ 2001-04-11 18:10:16 by lewie] Add implicit param test. --- diff --git a/ghc/tests/typecheck/should_compile/tc121.hs b/ghc/tests/typecheck/should_compile/tc121.hs new file mode 100644 index 0000000..461058e --- /dev/null +++ b/ghc/tests/typecheck/should_compile/tc121.hs @@ -0,0 +1,18 @@ +{-# OPTIONS -fglasgow-exts #-} + +-- 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