summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T18467.hs
blob: b105edf3d88d1ffa8d2ff8589faadeb3a2566660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# OPTIONS_GHC -fdefer-type-errors #-}

module T18467 where

----------------------
x = 3   -- Monomorphism restriction; we get x::alpha

f y = x::Float
g z = x::Int

-------------
h v = let t = \y -> (v, y : y) in fst (t True)