Local class is define inside program. It can be standalone, or inheriting non final class attributes.
When you already declare class and the variable, but the error is still occurred (Type “lcl_main” is unknown) while you activated the program like the picture below, please add DEFINITION DEFFERED before the variable declaration.

