Don't solve constraints before ambiguity

It doesn't achieve anything useful, and can be confusing because it
means behaviour is different for names where ambiguity is pruned by type
vs names where it isn't.
This commit is contained in:
Edwin Brady 2020-02-15 15:03:59 +00:00
parent 7e9c6e29e0
commit dbb336acef

View File

@ -351,8 +351,7 @@ checkAlternative rig elabinfo nest env fc uniq alts mexpected
_ => InTerm False
delayOnFailure fc rig env expected ambiguous $
\delayed =>
do solveConstraints solvemode Normal
defs <- get Ctxt
do defs <- get Ctxt
exp <- getTerm expected
-- We can't just use the old NF on the second attempt,