PLC-lang/rusty

show warning for BOOL-INT downcast

Open

#1,167 opened on Mar 20, 2024

 (4 comments) (0 reactions) (0 assignees)Rust (71 forks)auto 404
good first issuelow-priorityvalidation

Repository metrics

Stars
 (351 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide