ethereum / solidity

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

[Sol - Yul] Support struct conversion (storage to mapping) #8086

Closed axic closed 3 years ago

axic commented 4 years ago
contract C {
  struct S {
    uint a;
  }
  S s;
  mapping (uint => S) m;

  function f() external {
    m[1] = s;
  }
}
axic commented 3 years ago

This compiles now. Not sure which PR fixed it, perhaps @mijovic knows. And maybe this test case should be added?