ethereum / solidity

Solidity, the Smart Contract Programming Language
https://soliditylang.org
GNU General Public License v3.0
22.64k stars 5.61k forks source link

Error out on transient usage in TypeChecker #15218

Closed nikola-matic closed 3 days ago

nikola-matic commented 4 days ago

In https://github.com/ethereum/solidity/pull/15001 the prototypical case where a transient state variable is declared/defined compiled fine and even generated bytecode by treating the transient variable as a storage variable. This is a fix for that, mainly to keep develop in a releasable state, but will be removed once code generation (for value types) is implemented.