mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extend using-for.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
==== Source: A ====
|
||||
function id(uint x) pure returns (uint) {
|
||||
return x;
|
||||
}
|
||||
|
||||
==== Source: B ====
|
||||
import "A" as M;
|
||||
|
||||
contract C {
|
||||
using { id } for uint;
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 7920: (B:43-45): Identifier not found or not unique.
|
||||
Reference in New Issue
Block a user