summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T22924a.hs
blob: 80815d549251deaaa77566b52ae873da4d66352b (plain)
1
2
3
4
5
6
7
8
9
module T22924a where

import Data.Coerce

newtype R = MkR [R]

f :: a -> [R]
-- Should give a civilised error
f = coerce