mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make external library functions accessible.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
library L {
|
||||
function f(uint) pure external {}
|
||||
}
|
||||
|
||||
contract C {
|
||||
using L for *;
|
||||
|
||||
function f() public pure {
|
||||
L.f(2);
|
||||
uint x;
|
||||
x.f();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
Reference in New Issue
Block a user