summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T17007.hs
blob: 21b7639dd049d1fc1b24e71ddeb7f6085dea69e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module T17007 where

type ItemColID a b = Int  -- Discards a,b

get :: ItemColID a b -> ItemColID a b
get (x :: ItemColID a b) = x :: ItemColID a b

type family ItemColID' a b where ItemColID' a b = Int  -- Discards a,b

get' :: ItemColID' a b -> ItemColID' a b
get' (x :: ItemColID' a b) = x :: ItemColID' a b