mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
275 B
Plaintext
14 lines
275 B
Plaintext
/**
|
|
* @name Test for default value expressions
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, DefaultValueExpr e
|
|
where
|
|
m.hasName("MainIsAsCast") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getType() instanceof IntType and
|
|
e.getTypeAccess().getTarget() instanceof IntType
|
|
select m, e
|