on master help sign in
Make sure binders are unique before case tree
commit175a7353c7e2d021e42ef71531702236f4d57f96 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateFri 23 May 2014, 15:48 (12 years ago) parent222d593
1 file changed+2−1
src/Idris/ElabDecls.hs+2−1
src/Idris/ElabDecls.hs+2−1
@@ -1195,7 +1195,8 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
11951195 force (normalisePats ctxt [] y))
11961196 simple_lhs ctxt t = t
11971197
1198− simple_rt ctxt (p, x, y) = (p, x, force (rt_simplify ctxt [] y))
1198+ simple_rt ctxt (p, x, y) = (p, x, force (uniqueBinders p
1199+ (rt_simplify ctxt [] y)))
11991200
12001201 -- this is so pattern types are in the right form for erasure
12011202 normalisePats ctxt env (Bind n (PVar t) sc)