on master help sign in
Merge pull request #1685 from soimort/fix-checkUniqueKind

Add missing cases in checkUniqueKind (fixed #1606)

commit51617847195799fe661c977ef04b5b11acef250a authorEdwin Brady <edwin.brady@gmail.com> dateMon 24 Nov 2014, 11:08 (12 years ago) parent799cc23c953ff0
1 file changed+2−2
src/Idris/Elab/Data.hs+2−2
src/Idris/Elab/Data.hs+2−2
@@ -265,10 +265,10 @@ elabCon info syn tn codata expkind (doc, argDocs, n, t_in, fc, forcenames)
265265 = tclift $ tfail (At fc (UniqueKindError NullType n))
266266 checkUniqueKind (UType UniqueType) (UType UniqueType) = return ()
267267 checkUniqueKind (UType UniqueType) (UType AllTypes) = return ()
268− checkUniqueKind (UType UniqueType) (TType _)
268+ checkUniqueKind (UType UniqueType) _
269269 = tclift $ tfail (At fc (UniqueKindError UniqueType n))
270270 checkUniqueKind (UType AllTypes) _ = return ()
271− checkUniqueKind (TType _) _ = return ()
271+ checkUniqueKind _ _ = return ()
272272
273273type EliminatorState = StateT (Map.Map String Int) Idris
274274