solidity/test/libsolidity/semanticTests/functionCall/disordered_named_args.sol

10 lines
264 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
contract test {
function a(uint a, uint b, uint c) public returns (uint r) { r = a * 100 + b * 10 + c * 1; }
function b() public returns (uint r) { r = a({c: 3, a: 1, b: 2}); }
}
// ====
// compileToEwasm: also
// compileViaYul: also
2019-07-08 14:04:52 +00:00
// ----
// b() -> 123