summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/T14479.hs
blob: 13ee256e838da5fd7c7f0936a5d7a98e6921c106 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE ScopedTypeVariables, PartialTypeSignatures #-}

module T14479 where

foo :: Num a => a -> a
foo xxx = g xxx
  where
    g :: forall b. Num b => _ -> b
    g y = xxx + y