mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01: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()
|