mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
13 lines
371 B
Plaintext
13 lines
371 B
Plaintext
/**
|
|
* @name Test for overrides
|
|
*/
|
|
import csharp
|
|
|
|
from Property ap4, Property bp4, Property cp4
|
|
where ap4.hasName("P4") and ap4.getDeclaringType().hasName("A")
|
|
and bp4.hasName("P4") and bp4.getDeclaringType().hasName("B")
|
|
and cp4.hasName("P4") and cp4.getDeclaringType().hasName("C")
|
|
and not ap4.getOverridee() = bp4
|
|
and ap4.getOverridee() = cp4
|
|
select ap4, bp4
|