@@ -538,11 +538,11 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
538
538
private predicate directTypeMatch (
539
539
Access a , Declaration target , TypePath path , Type t , TypeParameter tp
540
540
) {
541
+ not exists ( getTypeArgument ( a , target , tp , _) ) and
541
542
exists ( AccessPosition apos , DeclarationPosition dpos , TypePath pathToTypeParam |
542
- adjustedAccessType ( a , apos , target , pathToTypeParam . append ( path ) , t ) and
543
+ accessDeclarationPositionMatch ( apos , dpos ) and
543
544
tp = target .getDeclaredType ( dpos , pathToTypeParam ) and
544
- not exists ( getTypeArgument ( a , target , tp , _) ) and
545
- accessDeclarationPositionMatch ( apos , dpos )
545
+ adjustedAccessType ( a , apos , target , pathToTypeParam .append ( path ) , t )
546
546
)
547
547
}
548
548
@@ -667,10 +667,10 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
667
667
private predicate baseTypeMatch (
668
668
Access a , Declaration target , TypePath path , Type t , TypeParameter tp
669
669
) {
670
+ not exists ( getTypeArgument ( a , target , tp , _) ) and
670
671
exists ( AccessPosition apos , DeclarationPosition dpos , Type base , TypePath pathToTypeParam |
671
672
accessBaseType ( a , apos , target , base , pathToTypeParam .append ( path ) , t ) and
672
673
declarationBaseType ( target , dpos , base , pathToTypeParam , tp ) and
673
- not exists ( getTypeArgument ( a , target , tp , _) ) and
674
674
accessDeclarationPositionMatch ( apos , dpos )
675
675
)
676
676
}
@@ -744,8 +744,8 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
744
744
exists ( DeclarationPosition dpos | accessDeclarationPositionMatch ( apos , dpos ) |
745
745
exists ( Declaration target , TypePath prefix , TypeParameter tp , TypePath suffix |
746
746
tp = target .getDeclaredType ( pragma [ only_bind_into ] ( dpos ) , prefix ) and
747
- typeMatch ( a , target , suffix , result , tp ) and
748
- path = prefix . append ( suffix )
747
+ path = prefix . append ( suffix ) and
748
+ typeMatch ( a , target , suffix , result , tp )
749
749
)
750
750
or
751
751
exists ( Declaration target |
0 commit comments