PLC-lang/rusty

show warning for BOOL-INT downcast

オープン

#1,167 opened on 2024/03/20

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (71 件のフォーク)auto 404
good first issuelow-priorityvalidation

Repository metrics

Stars
 (351 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド