[project @ 2000-05-22 13:37:16 by simonmar]
authorsimonmar <unknown>
Mon, 22 May 2000 13:37:16 +0000 (13:37 +0000)
committersimonmar <unknown>
Mon, 22 May 2000 13:37:16 +0000 (13:37 +0000)
Add test for record selector functions where the field has a
polymorphic type.

ghc/tests/deSugar/should_compile/Makefile
ghc/tests/deSugar/should_compile/ds050.hs [new file with mode: 0644]

index 8ed1fdf..0bd45f5 100644 (file)
@@ -6,6 +6,7 @@ SRC_HC_OPTS += -noC -dcore-lint
 
 ds035_HC_OPTS = -fglasgow-exts
 ds044_HC_OPTS = -O -funbox-strict-fields
+ds050_HC_OPTS = -fglasgow-exts
 
 # mkdependHS doesn't understand OPTIONS pragmas...
 SRC_MKDEPENDHS_OPTS += -fglasgow-exts
diff --git a/ghc/tests/deSugar/should_compile/ds050.hs b/ghc/tests/deSugar/should_compile/ds050.hs
new file mode 100644 (file)
index 0000000..4aa20a8
--- /dev/null
@@ -0,0 +1,6 @@
+module ShouldCompile where
+
+data Q = Q {f :: forall a. a -> a}
+g1 = f
+g2 x = f x
+g3 x y = f x y