Skip to content

Parameters are not passed to lambda expression #200

@waclaw66

Description

@waclaw66

Following example returns... Unknown identifier 'x' (at index 5).

var target = new Interpreter(InterpreterOptions.Default | InterpreterOptions.LambdaExpressions);
var listInt = target.Eval<List<int>>("list.Select(n => n > x)", new Parameter("list", new[] { 1, 2, 3 }), new Parameter("x", 1));
Assert.AreEqual(new[] { 2, 3 }, listInt);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions