PLC-lang/rusty

show warning for BOOL-INT downcast

Aberta

#1.167 aberto em 20 de mar. de 2024

 (4 comentários) (0 reação) (0 responsável)Rust (71 forks)auto 404
good first issuelow-priorityvalidation

Métricas do repositório

Stars
 (351 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador