PLC-lang/rusty

show warning for BOOL-INT downcast

开放

#1,167 创建于 2024年3月20日

 (4 条评论) (0 个反应) (0 位负责人)Rust (71 个派生)auto 404
good first issuelow-priorityvalidation

仓库指标

星标
 (351 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南