mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
15 lines
261 B
Plaintext
15 lines
261 B
Plaintext
/**
|
|
* @name Test for overrides
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method af6, Method bf6
|
|
where
|
|
af6.hasName("f6") and
|
|
af6.getDeclaringType().hasName("A") and
|
|
bf6.hasName("f6") and
|
|
bf6.getDeclaringType().hasName("B") and
|
|
af6.getOverridee() = bf6
|
|
select af6, bf6
|