summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T9117_2.hs
blob: e7b08d8b6c721c4a6feef3314960edf8713fb976 (plain)
1
2
3
4
5
6
7
8
9
10
module T9117_2 where


import Data.Coerce

newtype Foo a = Foo (Foo a)
newtype Age = MkAge Int

ex1 :: (Foo Age) -> (Foo Int)
ex1 = coerce