mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
248 B
Solidity
15 lines
248 B
Solidity
|
==== 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();
|
||
|
}
|
||
|
}
|