mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 11:05:17 +03:00
Merge pull request #1655 from edwinb/proofsearch-fix
Don't inline holes that are user defined names
This commit is contained in:
commit
4fdec0682e
@ -475,7 +475,9 @@ instantiate {newvars} loc mode env mname mref num mdef locs otm tm
|
||||
rhs <- mkDef locs INil tm ty
|
||||
|
||||
logTerm "unify.instantiate" 5 "Definition" rhs
|
||||
let simpleDef = MkPMDefInfo (SolvedHole num) (isSimple rhs) False
|
||||
let simpleDef = MkPMDefInfo (SolvedHole num)
|
||||
(not (isUserName mname) && isSimple rhs)
|
||||
False
|
||||
let newdef = record { definition =
|
||||
PMDef simpleDef [] (STerm 0 rhs) (STerm 0 rhs) []
|
||||
} mdef
|
||||
|
Loading…
Reference in New Issue
Block a user