DSL error when comparing two string variables

The problems, which happened with openHAB 5.1.0 when errors were handled as errors, are described at https://community.openhab.org/t/rules-dsl-in-5-1-is-now-unloading-rules-if-it-has-unreachable-expressions/ :

  • unconditional early return is an error
  • lambdas must spell explicitly parameter types and return type, when these cannot be deduced