summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/ExplicitSpecificity1.hs
blob: 4fddd912721e1b8ff3f955aef885bc98516f79b5 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TypeApplications, RankNTypes #-}

module ExplicitSpecificity1 where

foo :: forall {a}. a -> a
foo x = x

bar :: ()
bar = let x = foo @Int 42
      in ()