solidity/test/libsolidity/syntaxTests/literalSuffixes/parameters/overloading_imported_suffix.sol
2023-05-17 16:55:14 +02:00

32 lines
639 B
Solidity

==== Source: A.sol ====
function s(uint, uint) pure suffix returns (uint) {}
function f(uint, uint) pure returns (uint) {}
==== Source: B.sol ====
import "A.sol";
function s(string memory) pure returns (string memory) {}
function f(string memory) pure suffix returns (string memory) {}
contract C {
function run() public pure {
1024 s;
"a" f;
}
}
==== Source: C.sol ====
import {s, f} from "A.sol";
function s(string memory) pure returns (string memory) {}
function f(string memory) pure suffix returns (string memory) {}
contract D {
function run() public pure {
1024 s;
"a" f;
}
}