From 58af150c3dce26206825122d048e4e0732fcb50f Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 13 Mar 2018 16:50:27 +0100 Subject: Changelog entry. --- .../syntaxTests/virtualLookup/modifiers_in_libraries.sol | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/libsolidity/syntaxTests/virtualLookup/modifiers_in_libraries.sol (limited to 'test') diff --git a/test/libsolidity/syntaxTests/virtualLookup/modifiers_in_libraries.sol b/test/libsolidity/syntaxTests/virtualLookup/modifiers_in_libraries.sol new file mode 100644 index 00000000..b033fd0c --- /dev/null +++ b/test/libsolidity/syntaxTests/virtualLookup/modifiers_in_libraries.sol @@ -0,0 +1,14 @@ +library WithModifier { + modifier mod() { require(msg.value > 10 ether); _; } + function withMod(uint self) mod() internal view { require(self > 0); } +} + +contract Test { + using WithModifier for *; + + function f(uint _value) public payable { + _value.withMod(); + WithModifier.withMod(_value); + } +} +// ---- -- cgit