summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T5120.hs
blob: 0310be038477254cde4386b49598d70ae15e5c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoMonomorphismRestriction #-}

module Test where

class C t where
    type TF t
    ttt :: TF t -> t

b :: (C t, ?x :: TF t) => t
b = ttt ?x