aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/bound/bound_call.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/bound/bound_call.sol')
-rw-r--r--test/libsolidity/syntaxTests/bound/bound_call.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/bound/bound_call.sol b/test/libsolidity/syntaxTests/bound/bound_call.sol
new file mode 100644
index 00000000..281f19b4
--- /dev/null
+++ b/test/libsolidity/syntaxTests/bound/bound_call.sol
@@ -0,0 +1,7 @@
+library D { function double(uint self) internal pure returns (uint) { return 2*self; } }
+contract C {
+ using D for uint;
+ function f(uint a) public pure {
+ a.double();
+ }
+}