From: lewie Date: Fri, 13 Apr 2001 17:49:23 +0000 (+0000) Subject: [project @ 2001-04-13 17:49:23 by lewie] X-Git-Tag: Approximately_9120_patches~2158 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d37c07402a6657e7eeb274cfbeb8a728b961a421;p=ghc-hetmet.git [project @ 2001-04-13 17:49:23 by lewie] Add new test for IP. --- diff --git a/ghc/tests/typecheck/should_compile/tc123.hs b/ghc/tests/typecheck/should_compile/tc123.hs new file mode 100644 index 0000000..ecec4ba --- /dev/null +++ b/ghc/tests/typecheck/should_compile/tc123.hs @@ -0,0 +1,17 @@ +{-# OPTIONS -fglasgow-exts #-} + +-- !!! Monotypes w/ Implicit Parameters + +-- GHC 5.00 doesn't handle this: + +-- Couldn't match `{?wibble :: Int}' against `()' +-- Expected type: {?wibble :: Int} +-- Inferred type: () +-- In the first argument of `x', namely `()' +-- in the definition of function `y': x () + +module ShouldCompile where + +x () = (?wibble :: Int) + +y () = x ()