[project @ 2001-01-03 11:32:33 by simonmar]
authorsimonmar <unknown>
Wed, 3 Jan 2001 11:32:33 +0000 (11:32 +0000)
committersimonmar <unknown>
Wed, 3 Jan 2001 11:32:33 +0000 (11:32 +0000)
Add a test for mixing unlifted types w/ polymorphic functions.

ghc/tests/typecheck/should_fail/tcfail090.hs [new file with mode: 0644]
ghc/tests/typecheck/should_fail/tcfail090.stderr [new file with mode: 0644]

diff --git a/ghc/tests/typecheck/should_fail/tcfail090.hs b/ghc/tests/typecheck/should_fail/tcfail090.hs
new file mode 100644 (file)
index 0000000..3d8fc12
--- /dev/null
@@ -0,0 +1,8 @@
+{-# OPTIONS -fglasgow-exts #-}
+
+module ShouldFail where
+
+import PrelGHC
+
+die :: Int -> ByteArray#
+die _ = undefined
diff --git a/ghc/tests/typecheck/should_fail/tcfail090.stderr b/ghc/tests/typecheck/should_fail/tcfail090.stderr
new file mode 100644 (file)
index 0000000..8b011a2
--- /dev/null
@@ -0,0 +1,7 @@
+
+tcfail090.hs:8:
+    Couldn't match `#' against `*'
+    When matching types `ByteArray#' and `a'
+       Expected type: ByteArray#
+       Inferred type: a
+    In the right-hand side of an equation for `die': undefined