Consider a callable to ambiguous if it has a varargs parameter

This commit is contained in:
Sauyon Lee
2021-08-25 16:34:08 -07:00
parent 0d174f2daf
commit 9d66761eeb

View File

@@ -70,6 +70,8 @@ predicate mayBeAmbiguous(Callable c) {
other.getNumberOfParameters() = c.getNumberOfParameters() and
other != c
)
or
c.isVarargs()
}
/**