mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 04:43:25 +03:00
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:
parent
7e9c6e29e0
commit
dbb336acef
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user