mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Support named arguments in function calls
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
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({a: 1, b: 2, c: 3}); }
|
||||
function c() public returns (uint r) { r = a({b: 2, c: 3, a: 1}); }
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// b() -> 123
|
||||
// c() -> 123
|
||||
|
||||
Reference in New Issue
Block a user