summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T3692.hs
blob: b10e184d94cfc348430b8e12d2a3eee584fd03ad (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE RankNTypes #-}

module T3692 where

type Foo a b = () -> (Bar a => a)

class Bar a where {}

foo :: Foo a b
foo = id (undefined :: Foo a b)