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