solidity/test/libsolidity/syntaxTests/using/module_2.sol

15 lines
248 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
==== Source: A ====
function id(uint x) pure returns (uint) {
return x;
}
==== Source: B ====
import {id as Id} from "A";
contract C {
using { Id } for uint;
function f(uint x) public pure returns (uint) {
return x.Id();
}
}