summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/ContextStack1.hs
blob: 63e4b9e511087035432c0e3cd721ac6ffbf7dbf5 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE UndecidableInstances, FlexibleInstances, FlexibleContexts #-}

module ContextStack1 where

class Cls a where meth :: a

instance Cls [a] => Cls a

t :: ()
t = meth