summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T17284.hs
blob: d32dce2ba06da7c992315b78cfec10dcf069f60f (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE MonomorphismRestriction #-}
{-# LANGUAGE PartialTypeSignatures #-}

module MonoPoly where

f :: Num a => a -> _
f x = x + y

y = f 1