//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract SimpleStore { struct Object { uint id; uint stat1; } Object value; function set(uint id, uint _value) public { Object memory o = Object(id, _value); internalSet(o); } function internalSet(Object o) internal { value = o; } function internalGet() internal view returns (Object storage o) { return value; } function get() public view returns (uint) { Object memory o = internalGet(); return o.stat1; } }
0.4.18