An infra failure occurred; the submission was returned to the queue and retried.
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.35;
/* ===ARENA-MANIFEST===
{
"deploy": { "contract": "T", "args": [] },
"entry": { "function": "run", "args": [] },
"feature": "fnptr-mapping-struct-field-storage-word",
"note": "solc+EVM returns 1 and writes the internal-function storage word 197 at the mapping element's struct-field slot; solidity-lean returns 1 but writes dispatch ID 1."
}
===END-ARENA-MANIFEST=== */
contract T {
struct S { function() internal pure returns (uint256) f; }
mapping(uint256 => S) m;
function one() internal pure returns (uint256) { return 1; }
function run() external returns (uint256) {
m[1].f = one;
return m[1].f();
}
}