diff options
author | chriseth <chris@ethereum.org> | 2018-03-15 01:07:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 01:07:55 +0800 |
commit | 78abe81f0874f65b02ddc0529b4bd0ce93fa52a2 (patch) | |
tree | d8d1e8db2f7012aaabb84f134594ee4afa6a201e /test/libsolidity/syntaxTests | |
parent | eecc26deec1815191bc3405e54ef84daaba853a1 (diff) | |
parent | d0c96d53e90be5e58d8fef2e77fbd71baf2027ba (diff) | |
download | dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.gz dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.bz2 dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.lz dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.xz dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.zst dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.zip |
Merge branch 'develop' into externalFunctionsInLibraries
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r-- | test/libsolidity/syntaxTests/docstring_empty_description.sol | 6 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/virtualLookup/modifiers_in_libraries.sol | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/docstring_empty_description.sol b/test/libsolidity/syntaxTests/docstring_empty_description.sol new file mode 100644 index 00000000..0caa1b23 --- /dev/null +++ b/test/libsolidity/syntaxTests/docstring_empty_description.sol @@ -0,0 +1,6 @@ +contract C { + /// @param id + function vote(uint id) public; +} +// ---- +// DocstringParsingError: No description given for param id 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); + } +} +// ---- |