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 Method bf4, Method cf4
|
|
where
|
|
bf4.hasName("f4") and
|
|
bf4.getDeclaringType().hasName("B") and
|
|
cf4.hasName("f4") and
|
|
cf4.getDeclaringType().hasName("C") and
|
|
not bf4.getOverridee() = cf4
|
|
select bf4, cf4
|