mirror of
https://github.com/github/codeql.git
synced 2026-03-26 17:28:29 +01:00
13 lines
269 B
Plaintext
13 lines
269 B
Plaintext
/**
|
|
* @name Test for implicit cast
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, CastExpr e, VariableAccess access
|
|
where m.hasName("MainIsAsCast")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getExpr() = access
|
|
and access.getTarget().getName() = "i"
|
|
and e.isImplicit()
|
|
select 1
|