diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/T1981.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/T1981.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/T1981.hs b/testsuite/tests/indexed-types/should_compile/T1981.hs new file mode 100644 index 0000000000..658821ea73 --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/T1981.hs @@ -0,0 +1,8 @@ +{-# OPTIONS_GHC -XTypeFamilies #-} + +module ShouldCompile where + +type family T a + +f :: T a -> Int +f x = x `seq` 3 |