@@ -667,12 +667,13 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
667
667
apos = dpos
668
668
}
669
669
670
- bindingset [ apos, target, path, t]
670
+ bindingset [ a , apos, target, path, t]
671
671
pragma [ inline_late]
672
672
predicate adjustAccessType (
673
- AccessPosition apos , Declaration target , TypePath path , Type t , TypePath pathAdj , Type tAdj
673
+ Access a , AccessPosition apos , Declaration target , TypePath path , Type t , TypePath pathAdj ,
674
+ Type tAdj
674
675
) {
675
- if apos .isSelf ( )
676
+ if apos .isSelf ( ) and a . receiverImplicitlyBorrowed ( )
676
677
then
677
678
exists ( Type selfParamType |
678
679
selfParamType = target .getParameterType ( TSelfDeclarationPosition ( ) , TypePath:: nil ( ) )
@@ -836,11 +837,13 @@ private module FieldExprMatchingInput implements MatchingInputSig {
836
837
apos = dpos
837
838
}
838
839
839
- bindingset [ apos, target, path, t]
840
+ bindingset [ a , apos, target, path, t]
840
841
pragma [ inline_late]
841
842
predicate adjustAccessType (
842
- AccessPosition apos , Declaration target , TypePath path , Type t , TypePath pathAdj , Type tAdj
843
+ Access a , AccessPosition apos , Declaration target , TypePath path , Type t , TypePath pathAdj ,
844
+ Type tAdj
843
845
) {
846
+ exists ( a ) and
844
847
exists ( target ) and
845
848
if apos .isSelf ( )
846
849
then
0 commit comments