tvm - 2020-03-31

Can VARINFO be used within a library?

    VAR
        Info:       __SYSTEM.VAR_INFO;
        TestVar:  BOOL;
    END_VAR
    Info:= __VARINFO(TestVar);

Code works in a program, as soon as I move it to a function block in a library I get the following:

C0032: Cannot convert type 'Unknown type: 'MEMORY_AREA.MEM_LOCAL'' to type 'MEMORY_AREA'
C0046: Identifier 'MEMORY_AREA' not defined