diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T16204c.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T16204c.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T16204c.hs b/testsuite/tests/typecheck/should_fail/T16204c.hs new file mode 100644 index 0000000000..97318a5729 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T16204c.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE PolyKinds #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +module T16204c where + +import Data.Kind + +data family Sing :: forall k. k -> Type +type family Rep :: Type + +sTo :: forall (a :: Rep). Sing a +sTo = sTo + +x :: forall (a :: Type). Sing a +x = id sTo |