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.

貢獻者指南