When trying to formally assign an input-parameter with the removed address-of operator &, --check will not report any errors.
VAR_GLOBAL
global : DINT;
END_VAR
PROGRAM prog
VAR_INPUT
input : REF_TO DINT;
END_VAR
END_PROGRAM
FUNCTION main : DINT
prog(input := &global);
END_FUNCTION
The compilation will fail during codegen with:
error[E071]: no type hint available for EmptyStatement
┌─ target/demo.st:12:23
│
12 │ prog(input := &global);
│ ^ no type hint available for EmptyStatement
Compilation aborted due to previous errors.
When trying to formally assign an input-parameter with the removed address-of operator
&
,--check
will not report any errors.The compilation will fail during codegen with: