PLC-lang/rusty

show warning for BOOL-INT downcast

Aperta

#1167 aperta il 20 mar 2024

 (4 commenti) (0 reazioni) (0 assegnatari)Rust (71 fork)auto 404
good first issuelow-priorityvalidation

Metriche repository

Star
 (351 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

the following code

PROGRAM mainProg
VAR
  x1 : BOOL;
  x2 : INT;
END_VAR
  x1 := 20; 
  x2 := TRUE;
END_PROGRAM

will generate no warning, no error!

It will be nice to have minimum a warning and later to adjust easier the error_config file for codesys where this a error is.

Guida contributor