Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ private predicate candidateMethod(RefType t, Method m, string name, int numParam
predicate paramTypePair(Type t1, Type t2) {
exists(Method n, Method m, int i |
overloadedMethodsMostSpecific(n, m) and
t1 = n.getParameterType(i) and
t2 = m.getParameterType(i)
t1 = n.getParameterType(pragma[only_bind_into](i)) and
t2 = m.getParameterType(pragma[only_bind_into](i))
)
}

Expand All @@ -93,6 +93,7 @@ predicate potentiallyConfusingTypesRefTypes(RefType t1, RefType t2) {
}

// then check hasSubtypeOrInstantiation
pragma[nomagic]
predicate potentiallyConfusingTypes(Type t1, Type t2) {
potentiallyConfusingTypesSimple(t1, t2)
or
Expand Down