//---- 5, someFun(); //---- 1 + 2, someFun(); //---- I think these should trigger an error. The LHS clearly does nothing, and the result is not stored anywhere.
--- void someFun(){} void main() { 5, someFun(); 1 + 2, someFun(); } ---
@NilsLankila created dlang/dmd pull request #11377 "fix issue 12490 - No "Error: , has no effect" Error for comma expression LHS" fixing this issue: - fix issue 12490 - No "Error: , has no effect" Error for comma expression LHS Following a comment in sideeffect.d on how to check the LHS. https://github.com/dlang/dmd/pull/11377
dlang/dmd pull request #11377 "fix issue 12490 - No "Error: , has no effect" Error for comma expression LHS" was merged into master: - 5c4c630ab3be05b3cc3b60165b0e662f5d98eaa9 by Nils Lankila: fix issue 12490 - No "Error: , has no effect" Error for comma expression LHS Following a comment in sideeffect.d on how to check the LHS. https://github.com/dlang/dmd/pull/11377