summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T15205.hs
blob: 64eb1f51d6a768546e652289e024080bd95c5a00 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE MultiParamTypeClasses, GADTs, TypeOperators #-}
module Foo where

class (a ~ b) => C a b where
  op :: a -> a -> b

f :: C a b => a -> b
f x = op x x