solidity icon indicating copy to clipboard operation
solidity copied to clipboard

Fix `string.concat` and `bytes.concat` assignment to a constant variable.

Open rodiazet opened this issue 4 days ago • 1 comments

This PR fixes assignment to a constant variable of a result of string or bytes concatenation, if their arguments are values known in the compile-time. Closes: https://github.com/argotorg/solidity/issues/16188

Additionally

  • Add unit tests
  • Update the Changelog.md
  • Update existing unit tests:
    • Modify tests, which trigger "no-effect" expression warning to silence the warning.
    • Update error message, because now they fail in different (but very similar) way.

rodiazet avatar Dec 08 '25 11:12 rodiazet