summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/TyAppPat_TooMany.hs
blob: d69ec335b4c8b25b1f89573bfb7a54a24e91f20d (plain)
1
2
3
4
5
6
7
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
module TyAppPat_TooMany where

f :: Maybe Int -> Int
f (Just @Int @Bool x) = x
f Nothing = 10