mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
11 lines
254 B
Plaintext
11 lines
254 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
|