aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/bound/bound_all.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/bound/bound_all.sol')
-rw-r--r--test/libsolidity/syntaxTests/bound/bound_all.sol10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/bound/bound_all.sol b/test/libsolidity/syntaxTests/bound/bound_all.sol
new file mode 100644
index 00000000..29f55b88
--- /dev/null
+++ b/test/libsolidity/syntaxTests/bound/bound_all.sol
@@ -0,0 +1,10 @@
+library L {
+ function g(function() internal returns (uint) _t) internal returns (uint) { return _t(); }
+}
+contract C {
+ using L for *;
+ function f() public returns (uint) {
+ return t.g();
+ }
+ function t() public pure returns (uint) { return 7; }
+}