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

module ContextStack1 where

class Cls a where meth :: a

instance Cls [a] => Cls a

t :: ()
t = meth