PLC-lang/rusty

show warning for BOOL-INT downcast

Ouverte

#1 167 ouverte le 20 mars 2024

 (4 commentaires) (0 réaction) (0 personne assignée)Rust (71 forks)auto 404
good first issuelow-priorityvalidation

Métriques du dépôt

Stars
 (351 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur