mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
11 lines
266 B
Plaintext
11 lines
266 B
Plaintext
/**
|
|
* @name Test for overrides
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, Method n
|
|
where m.hasName("ToString") and m.getDeclaringType().hasName("C")
|
|
and n.hasName("ToString") and n.getDeclaringType() instanceof ObjectType
|
|
and m.getOverridee() = n
|
|
select m, n.toString()
|