The following code where a final variable is declared within a component is valid Adobe Coldfusion 2021 code, but throws an unexpected error in the linter.
Declaring static variables also throws a similar error.
Similarly, declaring static variables in a static block throws an error:
component {
static {
public myVar = "myValue";
}
}
Referencing static variables from outside the component also throws an error.

The following code where a final variable is declared within a component is valid Adobe Coldfusion 2021 code, but throws an unexpected error in the linter.
Declaring static variables also throws a similar error.
Similarly, declaring static variables in a static block throws an error:
Referencing static variables from outside the component also throws an error.