diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-11-19 22:17:39 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-11-22 21:41:39 +0800 |
commit | 06189ae57f2f556f21499938fca8f9c0db82779e (patch) | |
tree | ce106ef690debf21629cbf8339091c220381d6fc /test/libsolidity/syntaxTests/bound/bound_no_call.sol | |
parent | a5411965e6d7abf50f896291d69cab820db6ef87 (diff) | |
download | dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar.gz dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar.bz2 dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar.lz dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar.xz dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.tar.zst dexon-solidity-06189ae57f2f556f21499938fca8f9c0db82779e.zip |
Add assert and tests for bound functions
Diffstat (limited to 'test/libsolidity/syntaxTests/bound/bound_no_call.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/bound/bound_no_call.sol | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/bound/bound_no_call.sol b/test/libsolidity/syntaxTests/bound/bound_no_call.sol new file mode 100644 index 00000000..dcb3c3c5 --- /dev/null +++ b/test/libsolidity/syntaxTests/bound/bound_no_call.sol @@ -0,0 +1,7 @@ +library D { function double(uint self) public pure returns (uint) { return 2*self; } } +contract C { + using D for uint; + function f(uint a) public pure { + a.double; + } +} |