summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail146.hs
blob: f5ab46f4c556d976a11f5d59c56c3740284bc1c2 (plain)
1
2
3
4
5
6
7
module Foo1 where

-- Variant: class used as data
class SClass a where
 sFun :: a -> SData a
 
data SData a = SCon (SClass a)