mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
272 B
Plaintext
15 lines
272 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
|