summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T12081.hs
blob: 0bf03b19508accc141e9db993aef6b5bd2de090f (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE DataKinds, PolyKinds #-}

module T12081 where

data Nat = Z | S Nat

class C (n :: Nat) where
  type T n :: Nat
  f :: (a :: T n)