mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
15 lines
265 B
Plaintext
15 lines
265 B
Plaintext
/**
|
|
* @name Test for overrides
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property ap2, Property bp2
|
|
where
|
|
ap2.hasName("P2") and
|
|
ap2.getDeclaringType().hasName("A") and
|
|
bp2.hasName("P2") and
|
|
bp2.getDeclaringType().hasName("B") and
|
|
ap2.getOverridee() = bp2
|
|
select ap2, bp2
|