mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
15 lines
273 B
Plaintext
15 lines
273 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()
|