Lucee doens't find keys on variable named local

Description

In Lucee if a run this code:

it gave me this error: key [BAR] doesn't exist on line 8.
While if i run on coldfusion 2018 it runs without errors.

But if i declare the variable local like this:

Both on lucee and coldfusion 2018 the code runs correctly.

Environment

Windows 10
Java version "1.8.0_201"

Assignee

Unassigned

Reporter

Alberto Costamagna

Priority

Minor

Labels

Fix versions

None

Affects versions

Configure