diff options
author | chriseth <chris@ethereum.org> | 2018-03-14 00:18:21 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-14 00:18:46 +0800 |
commit | eecc26deec1815191bc3405e54ef84daaba853a1 (patch) | |
tree | fee544ac1ab5b49de54366f81ef1f8beb9727dde /test/libsolidity/syntaxTests | |
parent | 8ad0fb3be3998cf509c6329f41428fcd8d0d7de5 (diff) | |
download | dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar.gz dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar.bz2 dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar.lz dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar.xz dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.tar.zst dexon-solidity-eecc26deec1815191bc3405e54ef84daaba853a1.zip |
Make external library functions accessible.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r-- | test/libsolidity/syntaxTests/visibility/external_library_function.sol | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/external_library_function.sol b/test/libsolidity/syntaxTests/visibility/external_library_function.sol new file mode 100644 index 00000000..110e74db --- /dev/null +++ b/test/libsolidity/syntaxTests/visibility/external_library_function.sol @@ -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(); + } +} +// ---- |