/** * @name Test for lambda expressions */ import csharp from Assignment assign, LambdaExpr e where assign.getLValue().(VariableAccess).getTarget().hasName("f1") and e.getParent+() = assign and e.getNumberOfParameters() = 1 and e.getParameter(0).getType() instanceof ShortType and e.getParameter(0).hasName("x") select e