mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
11 lines
278 B
Plaintext
11 lines
278 B
Plaintext
/**
|
|
* @name Test for overrides
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, Method n
|
|
where m.hasName("Add") and m.getDeclaringType().hasName("List<>")
|
|
and n.hasName("Add") and n.getDeclaringType().hasName("ICollection<T>")
|
|
and m.getImplementee() = n
|
|
select m.toString(), n.toString()
|