summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail146.hs
blob: ccc77270e2e4fdd07e3953c14f00fd0c1b09f985 (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)