On Declarative 1.1.1, with this Pipeline, I get an error:
"groovy.lang.MissingPropertyException: No such property: test2 for class: groovy.lang.Binding"
This also errors the same way:
I'd expect the second example to error, due to out-of-order assignment. If this too can be fixed, that'd be fine, too. But the simple sequential evaluation of show in the first example should always work.