Skip to content
Snippets Groups Projects
Commit 84f53fe2 authored by Patrick's avatar Patrick
Browse files

add wildcards testcase for T25647a

parent 8756ab87
No related branches found
No related tags found
No related merge requests found
Pipeline #106705 failed
......@@ -72,3 +72,21 @@ newtype instance Dix5 f = DIn5 (f (Dix5 f))
data family Dix7 :: (k -> TYPE 'IntRep) -> k
newtype instance Dix7 f = DIn7 (f (Dix7 f))
-- anonymous wildcards
type Dix8 :: RuntimeRep -> Type
data family Dix8 r
newtype instance Dix8 _ = Dix8 Int
dix8 :: Dix8 FloatRep -> Int
dix8 (Dix8 x) = x
-- named wildcards
type Dix9 :: RuntimeRep -> Type
data family Dix9 r
newtype instance Dix9 _r = Dix9 Int
dix8 :: Dix9 FloatRep -> Int
dix8 (Dix9 x) = x
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment