Skip to content

var in lambda #4493

@hrf3

Description

@hrf3

oH 4.3.0.M5

var wIL = true // val is the same

val xx = [ |
  if (wIL) {logInfo("x","x");}
  true]

rule "x" when
  System started
then
  xx.apply();
end

The rule is executed without an error message even though the variable is not defined within the lambda, but the global variable is correctly not recognized within the lambda either. If I delete the variable I get a corresponding message during execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions