fix: make sure borrow annotations do not affect auto-completion
This commit is contained in:
parent
bc8daee635
commit
3318c75bed
1 changed files with 2 additions and 1 deletions
|
|
@ -180,7 +180,8 @@ private def isDotCompletionMethod (info : ConstantInfo) : MetaM Bool :=
|
|||
forallTelescopeReducing info.type fun xs _ => do
|
||||
for x in xs do
|
||||
let localDecl ← getLocalDecl x.fvarId!
|
||||
if localDecl.type.getAppFn.isConstOf info.name.getPrefix then
|
||||
let type := localDecl.type.consumeMData
|
||||
if type.getAppFn.isConstOf info.name.getPrefix then
|
||||
return true
|
||||
return false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue