/**
 * @name Test for local variable declaration statement
 */
import csharp

from Method m, LocalVariableDeclStmt s, LocalVariableDeclExpr e
where m.getName() = "MainLocalVarDecl"
  and s.getEnclosingCallable() = m
  and s.getAVariableDeclExpr() = e
  and e.getVariable().getName() = "y"
  and e.getVariable().getType() instanceof StringType
  and e.getVariable().isImplicitlyTyped()
select m, s, e
