PLC-lang/rusty

show warning for BOOL-INT downcast

Offen

#1.167 geöffnet am 20.03.2024

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (71 Forks)auto 404
good first issuelow-priorityvalidation

Repository-Metriken

Stars
 (351 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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