mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Consider a callable to ambiguous if it has a varargs parameter
This commit is contained in:
@@ -70,6 +70,8 @@ predicate mayBeAmbiguous(Callable c) {
|
||||
other.getNumberOfParameters() = c.getNumberOfParameters() and
|
||||
other != c
|
||||
)
|
||||
or
|
||||
c.isVarargs()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user